Skip to content

Commit e0d21fc

Browse files
committed
fix(chips): Update chips in chip list, and add margin to chip input
1 parent 262c23b commit e0d21fc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/lib/chips/chip-list.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ export class MatChipList implements MatFormFieldControl<any>, ControlValueAccess
346346

347347
// Check to see if we have a destroyed chip and need to refocus
348348
this._updateFocusForDestroyedChips();
349+
350+
this.stateChanges.next();
349351
});
350352
}
351353

src/lib/chips/chips.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,7 @@ input.mat-chip-input {
9898
width: $mat-chip-input-width;
9999
margin: $mat-chip-input-margin;
100100
}
101+
102+
.mat-form-field-type-mat-chip-list .mat-form-field-placeholder {
103+
margin: $mat-chip-input-margin;
104+
}

0 commit comments

Comments
 (0)