Skip to content

Commit

Permalink
fix tags autocomplete filter
Browse files Browse the repository at this point in the history
  • Loading branch information
gsambrotta committed Aug 14, 2024
1 parent 7403fcf commit cf6d7df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@
<mat-form-field>
<input matInput placeholder="Workflow ID" formControlName="id" name="id">
</mat-form-field>
<mat-form-field class="example-chip-list">
<mat-chip-listbox #chipList aria-label="Fruit selection">
<mat-chip-option *ngFor="let tag of tags.getRawValue()" [selectable]="selectable"
<mat-form-field class="chip-list">
<mat-chip-grid #chipList aria-label="tags">
<mat-chip-row *ngFor="let tag of tags.getRawValue()" [selectable]="selectable"
[removable]="removable" (removed)="removeTag(tag)">
{{tag}}
<mat-icon matChipRemove *ngIf="removable">cancel</mat-icon>
</mat-chip-option>
</mat-chip-row>
<input placeholder="Add tag..."
[matChipInputFor]="chipList"
[matChipInputSeparatorKeyCodes]="separatorKeysCodes"
[matChipInputAddOnBlur]="addOnBlur"
(matChipInputTokenEnd)="addTag($event)">
</mat-chip-listbox>
</mat-chip-grid>
</mat-form-field>
</form>
</mat-dialog-content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class EditWorkflowMetadataDialogComponent implements OnInit {
removable = true;
addOnBlur = true;
readonly separatorKeysCodes: number[] = [ENTER, COMMA];


get tags() {
return (this.form.get('tags') as UntypedFormArray);
Expand Down

0 comments on commit cf6d7df

Please sign in to comment.