We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f509e53 commit e69b2b0Copy full SHA for e69b2b0
src/material/chips/chip-grid.ts
@@ -340,7 +340,7 @@ export class MatChipGrid
340
// Delay until the next tick, because this can cause a "changed after checked"
341
// error if the input does something on focus (e.g. opens an autocomplete).
342
Promise.resolve().then(() => this._chipInput.focus());
343
- } else if (this._chips.length) {
+ } else if (this._chips.length && this._keyManager.activeItemIndex !== 0) {
344
this._keyManager.setFirstItemActive();
345
}
346
0 commit comments