Select element behavior with with_input=True #3827
parlance-zz
started this conversation in
Ideas / Feature Requests
Replies: 1 comment 2 replies
-
Hi @parlance-zz, So you're trying to add a new value on blur and not only on enter. This doesn't seem to be Quasar's default behavior. You're referring to the Text autocomplete example. But this doesn't allow to enter new values, which makes it hard to compare. Quasar's New value mode examples behave more like NiceGUI's current implementation. Since |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello,
The default behavior for the select element clears any user entered text when the element is defocused. The new-value-mode behaviors aren't particularly helpful because they require explicitly using the enter key which isn't necessarily intuitive, and it is unlikely that either the add or add-unique new-value-mode options cover the use cases most developers would want.
In my case I'm using the select element to list saved presets with buttons to load or save them, and it would be ideal if the user could type the preset name into the preset select element and click the save button (or make additional changes / interact with the rest of the UI and then click save). The new / ephemeral value is only removed when selecting a different option in the select element.
My desired behavior is shown here in the "Text autocomplete" example: https://quasar.dev/vue-components/select/#example--text-autocomplete
The following code is a functional workaround, but it's a bit messy and I think my desired functionality is a common enough use case to justify including it in the library.
Beta Was this translation helpful? Give feedback.
All reactions