Skip to content
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

Any ways to dynamically update helper-elements? #578

Open
epatpol opened this issue Nov 29, 2022 · 0 comments
Open

Any ways to dynamically update helper-elements? #578

epatpol opened this issue Nov 29, 2022 · 0 comments

Comments

@epatpol
Copy link

epatpol commented Nov 29, 2022

I have a use case where by default there's all the helper elements associated with the dropdown, but due to some external changes in data, there are some cases where the already rendered dropdown wouldn't need the helper elements like Filter, Select All, Unselect All etc.

This is kinda dynamic as it depends on other options in the forms. Sometimes I want those helper elements to be there, sometimes only the Unselect All (But not the Select All) for instance. Only solution I found was to re-render the component (remove and render a new one) but that seems overkill. I also managed to remove the helper elements with Jquery, but then some code in multiselect breaks the tab navigation, as I think it expects the helper-elements to be there but they're not, so user is stuck in the filter when tabbing.

tl;dr Why doesn't changing the helper-elements from "all" to "none" dynamically update the dropdown like it does with say, translation.

Thanks!

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