Skip to content

Commit 6d3feb7

Browse files
committed
omit more props
1 parent f76babc commit 6d3feb7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rc-mentions",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "React Mentions",
55
"keywords": [
66
"react",

src/Mentions.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,15 @@ class Mentions extends React.Component<MentionsProps, MentionsState> {
319319
const { value, measureLocation, measurePrefix, measuring, activeIndex } = this.state;
320320
const { prefixCls, className, style, autoFocus, notFoundContent, ...restProps } = this.props;
321321

322-
const inputProps = omit(restProps, 'prefix', 'onSelect');
322+
const inputProps = omit(
323+
restProps,
324+
'prefix',
325+
'split',
326+
'validateSearch',
327+
'filterOption',
328+
'onSelect',
329+
'onSearch',
330+
);
323331

324332
const options = measuring ? this.getOptions() : [];
325333

0 commit comments

Comments
 (0)