fix tag search
This commit is contained in:
parent
df067fd3cb
commit
12a33eb6b8
@ -33,7 +33,13 @@ export class UiTagsPicker implements OnInit {
|
|||||||
.valueChanges
|
.valueChanges
|
||||||
.pipe(
|
.pipe(
|
||||||
debounceTime(300),
|
debounceTime(300),
|
||||||
switchMap(value => this.tagsService.search(value))
|
switchMap(value => {
|
||||||
|
if (value.startsWith('#')) {
|
||||||
|
value = value.replace('#', '');
|
||||||
|
}
|
||||||
|
value = value.split('#').join('-');
|
||||||
|
return this.tagsService.search(value);
|
||||||
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
this.tags = this.model || [];
|
this.tags = this.model || [];
|
||||||
|
Loading…
Reference in New Issue
Block a user