-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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(text-field): Made handleValidationAttributeMutation method public. #2779
fix(text-field): Made handleValidationAttributeMutation method public. #2779
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, please just update in Readme and the foundation.js (line 182).
packages/mdc-textfield/README.md
Outdated
@@ -299,6 +299,7 @@ Method Signature | Description | |||
`isRequired() => boolean` | Returns whether the input is required. | |||
`setRequired(isRequired: boolean)` | Sets whether the input is required. | |||
`handleTextFieldInteraction(evt: Event) => void` | Handles click and keydown events originating from inside the Text Field component. | |||
`handleValidationAttributeMutation(mutationsList: {Array<MutationRecord>}) => void` | Handles validation attribute changes. |
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.
As per an offline conversation, this type should actually non-nullable:
handleValidationAttributeMutation(mutationsList: !Array<MutationRecord>)
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.
Done. Thanks!
Updated README & Foundation. |
Codecov Report
@@ Coverage Diff @@
## master #2779 +/- ##
=======================================
Coverage 98.48% 98.48%
=======================================
Files 98 98
Lines 4231 4231
Branches 538 538
=======================================
Hits 4167 4167
Misses 64 64
Continue to review full report at Codecov.
|
Fixes #2716