[Vuejs]-How does MaterialUI do this?

0๐Ÿ‘

โœ…

I solved this by doing the following, thanks to @Claies for the idea to look, and also this link:

https://codepen.io/Pineapple/pen/MWBVqGW

  1. event.preventDefault on mousedown
  2. @click on result behaves like normal (close input)
  3. @click/@focus on input set open = true
  4. @blur sets open = false

Leave a comment