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

Dropdown clearable sets '' as empty value. #4480

Open
dominikdosoudil opened this issue May 16, 2024 · 0 comments
Open

Dropdown clearable sets '' as empty value. #4480

dominikdosoudil opened this issue May 16, 2024 · 0 comments

Comments

@dominikdosoudil
Copy link

Dropdown sets '' as value when it's cleared using cross button. I think that much more sense would make null as it's meaning is literally empty value. Moreover '' makes even less sense if e.g. numbers are used as keys of other options.

const newValue = multiple ? [] : ''

Using null as an empty value should also resolve #1748

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