Skip to content

Commit 940dd06

Browse files
committed
refactor(material/chips): testing ariaLabel with input inside chip-grid
Updating previous fix to see if ariaLabel will be read even if input is inside chip-grid.
1 parent 53ffc0e commit 940dd06

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/dev-app/chips/chips-demo.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ <h4>Input is last child of chip grid</h4>
184184
</button>
185185
</mat-chip-row>
186186
}
187+
<input [disabled]="disableInputs"
188+
[matChipInputFor]="chipGrid1"
189+
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
190+
[matChipInputAddOnBlur]="addOnBlur"
191+
(matChipInputTokenEnd)="add($event)"
192+
ariaLabel="New contributor input..." />
187193
</mat-chip-grid>
188194
<input [disabled]="disableInputs"
189195
[matChipInputFor]="chipGrid1"
@@ -209,8 +215,7 @@ <h4>Input is next sibling child of chip grid</h4>
209215
<input [matChipInputFor]="chipGrid2"
210216
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
211217
[matChipInputAddOnBlur]="addOnBlur"
212-
(matChipInputTokenEnd)="add($event)"
213-
ariaLabel="New contributor input..." />
218+
(matChipInputTokenEnd)="add($event)"/>
214219
</mat-form-field>
215220

216221
<p>

0 commit comments

Comments
 (0)