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: patch form as an attribute #1788

Merged
merged 1 commit into from
Aug 6, 2020
Merged

fix: patch form as an attribute #1788

merged 1 commit into from
Aug 6, 2020

Conversation

posva
Copy link
Member

@posva posva commented Aug 5, 2020

Close #1787

@@ -93,6 +93,12 @@ function shouldSetAsProp(
return false
}

// #1787 form as an attribute must be a string, while it accepts an Element as
// a prop
if (key === 'form' && typeof value === 'string') {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if the type check on value is worth here as setting the form is ignored anyway since it's a read only property

@posva posva force-pushed the fix/form-attribute branch from 2cc64ab to d6caddd Compare August 5, 2020 17:33
@yyx990803 yyx990803 merged commit 00683fc into master Aug 6, 2020
@yyx990803 yyx990803 deleted the fix/form-attribute branch August 6, 2020 13:32
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.

Failed setting prop "form" on <button>: value test is invalid. TypeError: setting getter-only property "form"
2 participants