Skip to content

Commit c3aa76e

Browse files
wagnermacielAngular Material Team
andauthored
fix(material-experimental/mdc-form-field): implement new methods added to text field adapter (#20739)
* Project import generated by Copybara. PiperOrigin-RevId: 335453885 * build: update mdc canary version * fixup! build: update mdc canary version Co-authored-by: Angular Material Team <[email protected]>
1 parent 456503f commit c3aa76e

File tree

3 files changed

+575
-570
lines changed

3 files changed

+575
-570
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@types/youtube": "^0.0.38",
6262
"@webcomponents/custom-elements": "^1.1.0",
6363
"core-js": "^2.6.9",
64-
"material-components-web": "8.0.0-canary.774dcfc8e.0",
64+
"material-components-web": "8.0.0-canary.8a39352c8.0",
6565
"rxjs": "^6.5.3",
6666
"rxjs-tslint-rules": "^4.33.1",
6767
"systemjs": "0.19.43",

src/material-experimental/mdc-form-field/form-field.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ export class MatFormField implements AfterViewInit, OnDestroy, AfterContentCheck
294294
// abstract form control instance.
295295
deregisterValidationAttributeChangeHandler: () => {},
296296
registerValidationAttributeChangeHandler: () => null as any,
297+
298+
// Used by foundation to dynamically remove aria-describedby when the hint text
299+
// is shown only on invalid state, which should not be applicable here.
300+
setInputAttr: () => undefined,
301+
removeInputAttr: () => undefined,
297302
};
298303

299304
constructor(private _elementRef: ElementRef,

0 commit comments

Comments
 (0)