Skip to content

Commit 426feae

Browse files
committed
fixup! fix(material/form-field): allow ng-container to be used as text prefix/suffix
1 parent 02ade8c commit 426feae

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/material/form-field/directives/prefix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {Directive, ElementRef, InjectionToken, Input} from '@angular/core';
9+
import {Directive, InjectionToken, Input} from '@angular/core';
1010

1111
/**
1212
* Injection token that can be used to reference instances of `MatPrefix`. It serves as

tools/public_api_guard/material/form-field.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,22 +223,24 @@ export class MatLabel {
223223

224224
// @public
225225
export class MatPrefix {
226-
constructor(elementRef: ElementRef);
227226
// (undocumented)
228227
_isText: boolean;
229228
// (undocumented)
230-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, {}, {}, never, never, false, never>;
229+
set _isTextSelector(value: '');
230+
// (undocumented)
231+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatPrefix, "[matPrefix], [matIconPrefix], [matTextPrefix]", never, { "_isTextSelector": "matTextPrefix"; }, {}, never, never, false, never>;
231232
// (undocumented)
232233
static ɵfac: i0.ɵɵFactoryDeclaration<MatPrefix, never>;
233234
}
234235

235236
// @public
236237
export class MatSuffix {
237-
constructor(elementRef: ElementRef);
238238
// (undocumented)
239239
_isText: boolean;
240240
// (undocumented)
241-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, {}, {}, never, never, false, never>;
241+
set _isTextSelector(value: '');
242+
// (undocumented)
243+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSuffix, "[matSuffix], [matIconSuffix], [matTextSuffix]", never, { "_isTextSelector": "matTextSuffix"; }, {}, never, never, false, never>;
242244
// (undocumented)
243245
static ɵfac: i0.ɵɵFactoryDeclaration<MatSuffix, never>;
244246
}

0 commit comments

Comments
 (0)