Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quasar: Is there any way to get the value typed into a QSelect with use-input before it gets removed on blur?

Per the docs you can add the attribute use-input to a QSelect component to introduce filtering and things of that nature: https://quasar.dev/vue-components/select#Native-attributes-with-use-input.

However, if you type something into one of these fields and click outside of it, the text gets removed.

Is there any way to grab that text in Vue before it gets removed and do something with it?

like image 734
Timothy Fisher Avatar asked Oct 21 '25 18:10

Timothy Fisher


1 Answers

Since v1.9.9 there is also a @input-value event described in the q-select api.

As the api says it's emitted when the value in the text input changes. The new value is passed as parameter.

like image 118
Marco Avatar answered Oct 24 '25 14:10

Marco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!