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

Make it possible to stop autoclosing when "disabled" changes #567

Open
kevinkucharczyk opened this issue Jul 16, 2020 · 0 comments
Open

Comments

@kevinkucharczyk
Copy link

kevinkucharczyk commented Jul 16, 2020

https://github.com/cibernox/ember-basic-dropdown/blob/master/addon/components/basic-dropdown.ts#L93-L105

Currently, dropdowns will automatically close when the disabled prop changes. The behaviour makes sense to me in most cases, however I do have use cases where I'd prefer to keep my dropdowns open even if they become disabled while they're open.

For example (and this will be vague) I have a dropdown that renders a list of checkboxes - when a checkbox gets checked, I run a task. While the task runs, I disable all my inputs - including the dropdown in question and the checkboxes within it - but I would like to keep the dropdown open in case my users want to check/uncheck another option right after the task finishes.

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