Skip to content

Commit e6c7897

Browse files
committed
IBX-10948: Fixed update of suggestions list
1 parent 1117cc0 commit e6c7897

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/bundle/Resources/public/js/scripts/core/suggestion.taggify.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ import { getRestInfo } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scri
127127
return container.querySelector('div');
128128
}
129129

130+
handleSuggestionsFetch() {
131+
if (this.inputNode.value.length >= MIN_QUERY_LENGTH) {
132+
this.getSuggestions(this.inputNode.value);
133+
}
134+
}
135+
130136
handleInputKeyUp(event) {
131137
super.handleInputKeyUp(event);
132138

@@ -136,9 +142,7 @@ import { getRestInfo } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scri
136142
return;
137143
}
138144

139-
if (this.inputNode.value.length >= MIN_QUERY_LENGTH) {
140-
this.getSuggestions(this.inputNode.value);
141-
}
145+
this.handleSuggestionsFetch();
142146
}
143147

144148
init() {

0 commit comments

Comments
 (0)