Skip to content

Remove user typed text within dropdown after the user has selected an option #706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lovasoa opened this issue Nov 22, 2024 Discussed in #704 · 2 comments
Closed

Remove user typed text within dropdown after the user has selected an option #706

lovasoa opened this issue Nov 22, 2024 Discussed in #704 · 2 comments

Comments

@lovasoa
Copy link
Collaborator

lovasoa commented Nov 22, 2024

Discussed in #704

Originally posted by RipalPH November 20, 2024
I have dropdown with options and searchable and multiple row level parameter set as true allowing multiple select. I need a way to remove typed text by user once the option is selected. How do you achieve that with in built component. For example, if I type Ba in the dropdown it displays Banana as option but upon selecting Banana, it needs to remove typed text ba.

select
'form' as component,
'examples/show_variables.sql' as action,
'Reset' as reset;
select
'Fruits' as label,
'fruits[]' as name,
'select' as type,
TRUE as multiple,
TRUE as create_new,
'Good fruits...' as placeholder,
TRUE as searchable,
'press ctrl to select multiple values' as description,
'[{"label": "Orange", "value": 0, "selected": true}, {"label": "Apple", "value": 1}, {"label": "Banana", "value": 3, "selected": true}]' as options;

image

@lovasoa
Copy link
Collaborator Author

lovasoa commented Nov 22, 2024

Hi @RipalPH ! Thanks for reporting this. This sounds like a bug, I'll investigate it.

@lovasoa
Copy link
Collaborator Author

lovasoa commented Nov 22, 2024

fixed. The fix will be in v0.31, and is already on main images on docker.

lovasoa added a commit that referenced this issue Nov 22, 2024
In forms with a searchable select dropdown, the search field now resets itself after an item is selected, to let the user easily select another item.

Fixes #706
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant