fix(mentions): filterOption support boolean #4366 (#4376)

close #4366
pull/4385/head
John 2021-07-15 21:22:53 +08:00 committed by GitHub
parent 2dc5bbbf43
commit bea5df1541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ export const mentionsProps = {
placement: PropTypes.oneOf(PlaceMent),
character: PropTypes.any,
characterRender: PropTypes.func,
filterOption: PropTypes.func,
filterOption: {
type: [Boolean, Function] as PropType<typeof defaultFilterOption | false>,
},
validateSearch: PropTypes.func,
getPopupContainer: {
type: Function as PropType<() => HTMLElement>,