* Implemented as part of MatFormFieldControl. * @docs-private
(ids: string[])
| 363 | * @docs-private |
| 364 | */ |
| 365 | setDescribedByIds(ids: string[]) { |
| 366 | // We must keep this up to date to handle the case where ids are set |
| 367 | // before the chip input is registered. |
| 368 | this._ariaDescribedbyIds = ids; |
| 369 | |
| 370 | if (this._chipInput) { |
| 371 | this._chipInput.setDescribedByIds(ids); |
| 372 | } else if (ids.length) { |
| 373 | this._elementRef.nativeElement.setAttribute('aria-describedby', ids.join(' ')); |
| 374 | } else { |
| 375 | this._elementRef.nativeElement.removeAttribute('aria-describedby'); |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * Implemented as part of ControlValueAccessor. |
nothing calls this directly
no test coverage detected