Commit 9c81968843774bed7ff2a8bca076ab7005060f6d
Committed by
GitHub
Merge pull request #4872 from vvlladd28/imrpovement/material-chip/add-on-blur
UI: Improvement added chip after blur input
Showing
7 changed files
with
8 additions
and
4 deletions
... | ... | @@ -73,8 +73,8 @@ |
73 | 73 | style="max-width: 200px;" |
74 | 74 | [matChipInputFor]="relationTypesChipList" |
75 | 75 | [matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
76 | - (matChipInputTokenEnd)="addRelationType($event)" | |
77 | - [matChipInputAddOnBlur]="true"> | |
76 | + matChipInputAddOnBlur | |
77 | + (matChipInputTokenEnd)="addRelationType($event)"> | |
78 | 78 | </mat-chip-list> |
79 | 79 | <mat-hint innerHTML="{{ 'device-profile.alarm-rule-relation-types-list-hint' | translate }}"></mat-hint> |
80 | 80 | </mat-form-field> | ... | ... |
... | ... | @@ -86,6 +86,7 @@ |
86 | 86 | [matAutocompleteDisabled]="isEntityCountDatasource" |
87 | 87 | [matChipInputFor]="chipList" |
88 | 88 | [matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
89 | + matChipInputAddOnBlur | |
89 | 90 | (matChipInputTokenEnd)="add($event)"> |
90 | 91 | </mat-chip-list> |
91 | 92 | <mat-autocomplete #keyAutocomplete="matAutocomplete" | ... | ... |
... | ... | @@ -45,7 +45,7 @@ |
45 | 45 | <input placeholder="{{ !alarmFilterFormGroup.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}" |
46 | 46 | [matChipInputFor]="alarmTypeChipList" |
47 | 47 | [matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
48 | - [matChipInputAddOnBlur]="true" | |
48 | + matChipInputAddOnBlur | |
49 | 49 | (matChipInputTokenEnd)="addAlarmType($event)"> |
50 | 50 | </mat-chip-list> |
51 | 51 | </mat-form-field> | ... | ... |
... | ... | @@ -73,7 +73,7 @@ |
73 | 73 | <input placeholder="{{ !dataSettings.get('alarmTypeList').value?.length ? ('alarm.any-type' | translate) : '' }}" |
74 | 74 | [matChipInputFor]="alarmTypeChipList" |
75 | 75 | [matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
76 | - [matChipInputAddOnBlur]="true" | |
76 | + matChipInputAddOnBlur | |
77 | 77 | (matChipInputTokenEnd)="addAlarmType($event)"> |
78 | 78 | </mat-chip-list> |
79 | 79 | </mat-form-field> | ... | ... |
... | ... | @@ -37,6 +37,7 @@ |
37 | 37 | [matAutocomplete]="labelAutocomplete" |
38 | 38 | [matChipInputFor]="chipList" |
39 | 39 | [matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
40 | + matChipInputAddOnBlur | |
40 | 41 | (matChipInputTokenEnd)="add($event)"> |
41 | 42 | </mat-chip-list> |
42 | 43 | <mat-autocomplete #labelAutocomplete="matAutocomplete" | ... | ... |
... | ... | @@ -36,6 +36,7 @@ |
36 | 36 | [matAutocomplete]="keyAutocomplete" |
37 | 37 | [matChipInputFor]="chipList" |
38 | 38 | [matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
39 | + matChipInputAddOnBlur | |
39 | 40 | (matChipInputTokenEnd)="add($event)"> |
40 | 41 | </mat-chip-list> |
41 | 42 | <mat-autocomplete #keyAutocomplete="matAutocomplete" | ... | ... |
... | ... | @@ -36,6 +36,7 @@ |
36 | 36 | [matAutocomplete]="entitySubtypeAutocomplete" |
37 | 37 | [matChipInputFor]="chipList" |
38 | 38 | [matChipInputSeparatorKeyCodes]="separatorKeysCodes" |
39 | + matChipInputAddOnBlur | |
39 | 40 | (matChipInputTokenEnd)="chipAdd($event)"> |
40 | 41 | </mat-chip-list> |
41 | 42 | <mat-autocomplete #entitySubtypeAutocomplete="matAutocomplete" | ... | ... |