-
-
Notifications
You must be signed in to change notification settings - Fork 135
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(attributes-to-props): don't convert value of option tag #790
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall, left some comments
@adammockor You'll also need to update npm run size-limit |
Thank you for review. About the API, I am not sure how to approach it. I made second parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my previous comments. I've left 2 more comments.
I think the 2nd parameter is fine since it's optional and backwards compatible. Thanks for opening this PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #790 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 171 172 +1
Branches 57 58 +1
=========================================
+ Hits 171 172 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
What is the motivation for this pull request?
Fixes #625 and closes ##628. Not sure if there is another element affected with this issue then
option
.What is the current behavior?
attributesToProps
convertsvalue
attribute todefaultValue
ofoption
element what is not desirable.What is the new behavior?
value
attribute is preserved onoption
element.Checklist: