@@ -2,7 +2,6 @@ import classNames from 'classnames';
2
2
import toArray from 'rc-util/lib/Children/toArray' ;
3
3
import KeyCode from 'rc-util/lib/KeyCode' ;
4
4
import * as React from 'react' ;
5
- import { polyfill } from 'react-lifecycles-compat' ;
6
5
import KeywordTrigger from './KeywordTrigger' ;
7
6
import { MentionsContextProvider } from './MentionsContext' ;
8
7
import Option , { OptionProps } from './Option' ;
@@ -57,6 +56,12 @@ interface MentionsState {
57
56
class Mentions extends React . Component < MentionsProps , MentionsState > {
58
57
public static Option = Option ;
59
58
59
+ public textarea ?: HTMLTextAreaElement ;
60
+
61
+ public measure ?: HTMLDivElement ;
62
+
63
+ public focusId : number | undefined = undefined ;
64
+
60
65
public static defaultProps = {
61
66
prefixCls : 'rc-mentions' ,
62
67
prefix : '@' ,
@@ -77,12 +82,6 @@ class Mentions extends React.Component<MentionsProps, MentionsState> {
77
82
return newState ;
78
83
}
79
84
80
- public textarea ?: HTMLTextAreaElement ;
81
-
82
- public measure ?: HTMLDivElement ;
83
-
84
- public focusId : number | undefined = undefined ;
85
-
86
85
constructor ( props : MentionsProps ) {
87
86
super ( props ) ;
88
87
this . state = {
@@ -399,6 +398,4 @@ class Mentions extends React.Component<MentionsProps, MentionsState> {
399
398
}
400
399
}
401
400
402
- polyfill ( Mentions ) ;
403
-
404
401
export default Mentions ;
0 commit comments