Skip to content

fix: added a symbol to detect non passed props with Vue 3.1.x - #3295

Merged
logaretm merged 1 commit into
mainfrom
fix/prop-key-presence
May 8, 2021
Merged

fix: added a symbol to detect non passed props with Vue 3.1.x#3295
logaretm merged 1 commit into
mainfrom
fix/prop-key-presence

Conversation

@logaretm

@logaretm logaretm commented May 8, 2021

Copy link
Copy Markdown
Owner

As reported in #3294 the new behavior of prop keys always present causes issues with checkboxes and initial value detection, this is caused by the reliance on detecting if a user didn't pass a model-value prop.

This PR mitigates this by introducing a unique symbol value as a default to deter when the user didn't pass a model value.

@logaretm
logaretm merged commit 0663539 into main May 8, 2021
@logaretm
logaretm deleted the fix/prop-key-presence branch May 8, 2021 23:22
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

Successfully merging this pull request may close these issues.

1 participant