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(text-field): Made handleValidationAttributeMutation method public. #2779

Merged

Conversation

abhiomkar
Copy link
Collaborator

@abhiomkar abhiomkar commented May 21, 2018

Fixes #2716

@abhiomkar abhiomkar requested a review from moog16 May 21, 2018 20:18
Copy link
Contributor

@moog16 moog16 left a 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).

@@ -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.
Copy link
Contributor

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>)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. Thanks!

@abhiomkar
Copy link
Collaborator Author

Updated README & Foundation.

@codecov-io
Copy link

Codecov Report

Merging #2779 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2779   +/-   ##
=======================================
  Coverage   98.48%   98.48%           
=======================================
  Files          98       98           
  Lines        4231     4231           
  Branches      538      538           
=======================================
  Hits         4167     4167           
  Misses         64       64
Impacted Files Coverage Δ
packages/mdc-textfield/foundation.js 98.89% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d42eab4...7926df0. Read the comment docs.

@abhiomkar abhiomkar merged commit 1949989 into master May 21, 2018
@kfranqueiro kfranqueiro deleted the fix_textfield_handleValidationAttributeMutation_issue2716 branch August 1, 2018 16:21
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.

3 participants