Skip to content

Commit 8a28164

Browse files
committed
fix(chips): Update chips in chip list, and add margin to chip input
1 parent 4dd8a31 commit 8a28164

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
@@ -344,6 +344,8 @@ export class MatChipList implements MatFormFieldControl<any>, ControlValueAccess
344344

345345
// Check to see if we have a destroyed chip and need to refocus
346346
this._updateFocusForDestroyedChips();
347+
348+
this.stateChanges.next();
347349
});
348350
}
349351

src/lib/chips/chips.scss

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

0 commit comments

Comments
 (0)