Browse Source

BI-139874 fix: 【6016】数据集编辑过滤下拉框,搜索内容带了个回车,前端会一直显示加载中

research/test
翠屏山最速下山传说 12 months ago
parent
commit
f0ebcbb2aa
  1. 17
      packages/fineui/src/widget/multiselect/trigger/searcher.multiselect.insert.js

17
packages/fineui/src/widget/multiselect/trigger/searcher.multiselect.insert.js

@ -1,4 +1,17 @@
import { shortcut, Widget, extend, emptyFn, i18nText, createWidget, isNotNull, isEmptyArray, size, each, BlankSplitChar, Selection } from "@/core"; import {
shortcut,
Widget,
extend,
emptyFn,
i18nText,
createWidget,
isNotNull,
isEmptyArray,
size,
each,
BlankSplitChar,
Selection
} from "@/core";
import { MultiSelectEditor } from "./editor.multiselect"; import { MultiSelectEditor } from "./editor.multiselect";
import { Searcher } from "@/base"; import { Searcher } from "@/base";
import { MultiSelectSearchInsertPane } from "../search/multiselect.search.insert.pane"; import { MultiSelectSearchInsertPane } from "../search/multiselect.search.insert.pane";
@ -80,7 +93,7 @@ export class MultiSelectInsertSearcher extends Widget {
op.keywords = [keyword]; op.keywords = [keyword];
this.setKeyword(keyword); this.setKeyword(keyword);
o.itemsCreator(op, function () { o.itemsCreator(op, function () {
if (keyword === self.editor.getValue()) { if (keyword === self.editor.getKeyword()) {
callback(...arguments); callback(...arguments);
} }
}); });

Loading…
Cancel
Save