File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import TextInputOutlined from './TextInputOutlined';
1010import TextInputFlat from './TextInputFlat' ;
1111import { withTheme } from '../../core/theming' ;
1212import { RenderProps , State } from './types' ;
13- import { Theme } from '../../types' ;
13+ import { Theme , $Omit } from '../../types' ;
1414
1515const BLUR_ANIMATION_DURATION = 180 ;
1616const FOCUS_ANIMATION_DURATION = 150 ;
@@ -398,8 +398,10 @@ class TextInput extends React.Component<TextInputProps, State> {
398398 }
399399
400400 render ( ) {
401- // eslint-disable-next-line @typescript-eslint/no-unused-vars
402- const { mode, padding, ref : outerRef , ...rest } = this . props ;
401+ const { mode, padding, ...rest } = this . props as $Omit <
402+ TextInputProps ,
403+ 'ref'
404+ > ;
403405
404406 return mode === 'outlined' ? (
405407 < TextInputOutlined
You can’t perform that action at this time.
0 commit comments