Skip to content

Commit

Permalink
fix: Cascader repos Popover when search input change & item remove by…
Browse files Browse the repository at this point in the history
… click close icon (#2417)
  • Loading branch information
YyumeiZhang authored Aug 19, 2024
1 parent d394a91 commit 4de0ba7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/semi-foundation/cascader/foundation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,7 @@ export default class CascaderFoundation extends BaseFoundation<CascaderAdapter,
filteredKeys: new Set(filteredKeys),
});
this._adapter.notifyOnSearch(sugInput);
this._adapter.rePositionDropdown();
}

handleClear() {
Expand Down Expand Up @@ -1039,6 +1040,7 @@ export default class CascaderFoundation extends BaseFoundation<CascaderAdapter,
}
const removedItem = keyEntities[key] ?? {};
!removedItem?.data?.disable && this._handleMultipleSelect(removedItem);
this._adapter.rePositionDropdown();
}

handleTagRemoveInTrigger = (pos: string) => {
Expand Down

0 comments on commit 4de0ba7

Please sign in to comment.