mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
remove the lambda used in input-number render() function
This commit is contained in:
parent
6ef24cf833
commit
80e6204803
@ -38,6 +38,10 @@ export default class InputNumber extends React.Component<InputNumberProps, any>
|
||||
|
||||
private inputNumberRef: any;
|
||||
|
||||
saveInputNumber = (inputNumberRef: any) => {
|
||||
this.inputNumberRef = inputNumberRef;
|
||||
};
|
||||
|
||||
focus() {
|
||||
this.inputNumberRef.focus();
|
||||
}
|
||||
@ -61,7 +65,7 @@ export default class InputNumber extends React.Component<InputNumberProps, any>
|
||||
|
||||
return (
|
||||
<RcInputNumber
|
||||
ref={(c: any) => (this.inputNumberRef = c)}
|
||||
ref={this.saveInputNumber}
|
||||
className={inputNumberClass}
|
||||
upHandler={upIcon}
|
||||
downHandler={downIcon}
|
||||
|
Loading…
Reference in New Issue
Block a user