Skip to content

Commit 69b9c69

Browse files
committed
Stop selecting all contents in Input/ExpressionInput on focus
1 parent 05e8fe6 commit 69b9c69

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/components/input/ExpressionInput.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class Input extends Component<Props, State> {
5656
editedValue: this.props.number.expr.toString()
5757
});
5858
this.inputElemRef.current!.value = this.props.number.expr.toString();
59-
this.inputElemRef.current!.select();
6059
}
6160

6261
editingMode() {

src/components/input/Input.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ class Input extends Component<Props, State> {
6363
editedValue: this.props.number.toString()
6464
});
6565
this.inputElemRef.current!.value = this.props.number.toString();
66-
this.inputElemRef.current!.select();
6766
}
6867

6968
editingMode() {

0 commit comments

Comments
 (0)