Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(text-field): Made handleValidationAttributeMutation method public. (
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiomkar authored May 21, 2018
1 parent d42eab4 commit 1949989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/mdc-textfield/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
`activateFocus() => void` | Activates the focus state of the Text Field. Normally called in response to the input focus event.
`deactivateFocus() => void` | Deactivates the focus state of the Text Field. Normally called in response to the input blur event.
`setHelperTextContent(content: string) => void` | Sets the content of the helper text.
Expand Down
7 changes: 3 additions & 4 deletions packages/mdc-textfield/foundation.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class MDCTextFieldFoundation extends MDCFoundation {
/** @private {function(!Event): undefined} */
this.textFieldInteractionHandler_ = () => this.handleTextFieldInteraction();
/** @private {function(!Array): undefined} */
this.validationAttributeChangeHandler_ = (mutations) => this.handleValidationAttributeMutation_(mutations);
this.validationAttributeChangeHandler_ = (mutations) => this.handleValidationAttributeMutation(mutations);
/** @private {!MutationObserver} */
this.validationObserver_;
}
Expand Down Expand Up @@ -179,10 +179,9 @@ class MDCTextFieldFoundation extends MDCFoundation {

/**
* Handles validation attribute changes
* @param {Array<MutationRecord>} mutationsList
* @private
* @param {!Array<MutationRecord>} mutationsList
*/
handleValidationAttributeMutation_(mutationsList) {
handleValidationAttributeMutation(mutationsList) {
mutationsList.some((mutation) => {
if (VALIDATION_ATTR_WHITELIST.indexOf(mutation.attributeName) > -1) {
this.styleValidity_(true);
Expand Down

0 comments on commit 1949989

Please sign in to comment.