quasar icon indicating copy to clipboard operation
quasar copied to clipboard

QSelect should keep user input on focusout

Open James-Z-Tang opened this issue 7 years ago • 4 comments

Is your feature request related to a problem? Please describe. When I use QSelect with use-input enabled I can type in the Select input box however when I click other place on the page the typed chars is always cleared. This makes it impossible to enter new but only existing options.

Describe the solution you'd like Please keep user's input when Selector focuses out.

James-Z-Tang avatar Oct 10 '19 20:10 James-Z-Tang

Instead of using enter to save before leaving, upon leaving the use=input textbox would send any value in it's buffer to the select list automatically?

I could see maybe a @discarded="listener" that would be called before discarding leftover values. This would be passed the leftover value with an add callback. Seems a little narrow, but maybe there are other use cases.

userdude avatar Oct 11 '19 01:10 userdude

When the text typed is updated a @filter event (with the first parameter the text) is emitted. You can store this and do whatever you want on @blur.

pdanpdan avatar Oct 11 '19 05:10 pdanpdan

I am using this as a text input with autocomplete capability. I think you can simply leave the user input text there and let developer decide how to deal with it.

On Oct 11, 2019, at 00:21, Popescu Dan [email protected] wrote:

When the text typed is updated a @filter event (with the first parameter the text) is emitted. You can store this and do whatever you want on @blur.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quasarframework/quasar/issues/5276?email_source=notifications&email_token=AMCA72AIUJQL3HTRRAWG23TQOAEMNA5CNFSM4I7R7IF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA62JXA#issuecomment-540910812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMCA72EENBRBKJ2DOKYYCR3QOAEMNANCNFSM4I7R7IFQ.

James-Z-Tang avatar Oct 11 '19 13:10 James-Z-Tang

If you need a text field then use a QInput and use a popup to provide the autocomplete.

pdanpdan avatar Oct 11 '19 13:10 pdanpdan