Skip to content

Commit b72a414

Browse files
committed
fix: table custom filterIcon emit sort event #3819
1 parent 75c4368 commit b72a414

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/table/filterDropdown.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ export default defineComponent({
221221
class: classNames(`${prefixCls}-icon`, dropdownIconClass, filterIcon.props?.class),
222222
});
223223
}
224-
return <span class={classNames(`${prefixCls}-icon`, dropdownIconClass)}>{filterIcon}</span>;
224+
return (
225+
<span class={classNames(`${prefixCls}-icon`, dropdownIconClass)} onClick={stopPropagation}>
226+
{filterIcon}
227+
</span>
228+
);
225229
},
226230

227231
renderMenuItem(item) {

v2-doc

0 commit comments

Comments
 (0)