Skip to content

Commit e69b2b0

Browse files
authored
fix(material/chips): fix focus issue (#29427)
fix focus issue fixes b/290959510
1 parent f509e53 commit e69b2b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material/chips/chip-grid.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export class MatChipGrid
340340
// Delay until the next tick, because this can cause a "changed after checked"
341341
// error if the input does something on focus (e.g. opens an autocomplete).
342342
Promise.resolve().then(() => this._chipInput.focus());
343-
} else if (this._chips.length) {
343+
} else if (this._chips.length && this._keyManager.activeItemIndex !== 0) {
344344
this._keyManager.setFirstItemActive();
345345
}
346346

0 commit comments

Comments
 (0)