mirror of
https://github.com/Radarr/Radarr
synced 2025-02-20 13:27:10 +00:00
Fixed: Number input changing while scrolling
(cherry picked from commit cc46ed56b4b70fe1f1443c0a927383f19c989c47)
This commit is contained in:
parent
b48eda95dd
commit
7fb1163b23
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,12 @@ class TextInput extends Component {
|
|||
this._isMouseTarget = false;
|
||||
};
|
||||
|
||||
onWheel = () => {
|
||||
if (this.props.type === 'number') {
|
||||
this._input.blur();
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
// Render
|
||||
|
||||
|
@ -161,6 +167,7 @@ class TextInput extends Component {
|
|||
onKeyUp={this.onKeyUp}
|
||||
onMouseDown={this.onMouseDown}
|
||||
onMouseUp={this.onMouseUp}
|
||||
onWheel={this.onWheel}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue