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

Fix unexpected modelValue emit if no checkbox value is set #18552

Merged
merged 2 commits into from
May 11, 2023

Conversation

hanneskuettner
Copy link
Contributor

Fixes #18550

When using a checkbox with a custom value in select-multiple-checkbox that does not yet have a value set the checkbox component previously emitted an update:modelValue event with false as payload, even though it was used with an array modelValue because of the else branch in L106.

I also included a small usability fix that prevents focusing (by clicking) the input from toggling the checkbox.

@changeset-bot
Copy link

changeset-bot bot commented May 11, 2023

🦋 Changeset detected

Latest commit: 656098e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@directus/app Patch
@directus/api Patch
directus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rijkvanzanten rijkvanzanten merged commit 51ec0b1 into directus:main May 11, 2023
5 checks passed
@rijkvanzanten rijkvanzanten added this to the Next Release milestone May 11, 2023
meditadvisors pushed a commit to ciso360ai/directus-mod that referenced this pull request May 13, 2023
…18552)

* Fix unexpected modelValue emit if no checkbox value is set

* Add changeset
@hanneskuettner hanneskuettner deleted the fix-18550 branch May 17, 2023 10:20
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checkboxes unchecked when adding new option
2 participants