Skip to content

Commit bea5df1

Browse files
authored
fix(mentions): filterOption support boolean #4366 (#4376)
close #4366
1 parent 2dc5bbb commit bea5df1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/vc-mentions/src/mentionsProps.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ export const mentionsProps = {
2020
placement: PropTypes.oneOf(PlaceMent),
2121
character: PropTypes.any,
2222
characterRender: PropTypes.func,
23-
filterOption: PropTypes.func,
23+
filterOption: {
24+
type: [Boolean, Function] as PropType<typeof defaultFilterOption | false>,
25+
},
2426
validateSearch: PropTypes.func,
2527
getPopupContainer: {
2628
type: Function as PropType<() => HTMLElement>,

0 commit comments

Comments
 (0)