8000 Allow disabling dropdown clearable by rickyosser · Pull Request #2288 · atk4/ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow disabling dropdown clearable #2288

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

Merged
merged 5 commits into from
May 9, 2025

Conversation

rickyosser
Copy link
Contributor
@rickyosser rickyosser commented May 9, 2025

I added a small if to check if the "clearable" option is set, if it is then override the default model-based behaviour for dropdowns.

The current implementation requires you to actually use a model to populate the dropdown otherwise clearable is always set. In cases where you aren't using any models at all for DB/data related handling this will make it possible to delete the value which might not be the expected result.

This PR will make the the Dropdown honour setDropdownOption('clearable', false).

@rickyosser rickyosser changed the title Added support for honouring clearable option. Added support for honouring clearable option for dropdowns. May 9, 2025
@mvorisek mvorisek changed the title Added support for honouring clearable option for dropdowns. Allow disabling dropdown clearable May 9, 2025
@mvorisek mvorisek merged commit b1a9ef0 into atk4:develop May 9, 2025
25 checks passed
@rickyosser rickyosser deleted the dropdown-honour-clearable branch May 9, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
43A0
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0