This repository was archived by the owner on Jan 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ Method Signature | Description
299
299
` isRequired() => boolean ` | Returns whether the input is required.
300
300
` setRequired(isRequired: boolean) ` | Sets whether the input is required.
301
301
` handleTextFieldInteraction(evt: Event) => void ` | Handles click and keydown events originating from inside the Text Field component.
302
+ ` handleValidationAttributeMutation(mutationsList: !Array<MutationRecord>) => void ` | Handles validation attribute changes.
302
303
` activateFocus() => void ` | Activates the focus state of the Text Field. Normally called in response to the input focus event.
303
304
` deactivateFocus() => void ` | Deactivates the focus state of the Text Field. Normally called in response to the input blur event.
304
305
` setHelperTextContent(content: string) => void ` | Sets the content of the helper text.
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ class MDCTextFieldFoundation extends MDCFoundation {
123
123
/** @private {function(!Event): undefined} */
124
124
this . textFieldInteractionHandler_ = ( ) => this . handleTextFieldInteraction ( ) ;
125
125
/** @private {function(!Array): undefined} */
126
- this . validationAttributeChangeHandler_ = ( mutations ) => this . handleValidationAttributeMutation_ ( mutations ) ;
126
+ this . validationAttributeChangeHandler_ = ( mutations ) => this . handleValidationAttributeMutation ( mutations ) ;
127
127
/** @private {!MutationObserver} */
128
128
this . validationObserver_ ;
129
129
}
@@ -179,10 +179,9 @@ class MDCTextFieldFoundation extends MDCFoundation {
179
179
180
180
/**
181
181
* Handles validation attribute changes
182
- * @param {Array<MutationRecord> } mutationsList
183
- * @private
182
+ * @param {!Array<MutationRecord> } mutationsList
184
183
*/
185
- handleValidationAttributeMutation_ ( mutationsList ) {
184
+ handleValidationAttributeMutation ( mutationsList ) {
186
185
mutationsList . some ( ( mutation ) => {
187
186
if ( VALIDATION_ATTR_WHITELIST . indexOf ( mutation . attributeName ) > - 1 ) {
188
187
this . styleValidity_ ( true ) ;
You can’t perform that action at this time.
0 commit comments