We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b430ed commit fd3bdaaCopy full SHA for fd3bdaa
src/components/NumberInput/NumberInput.jsx
@@ -521,14 +521,14 @@ class NumberInput extends Component {
521
let downEvents;
522
523
upEvents = {
524
- onMouseDown: editable && !upDisabled ? this.up : noop,
525
- onMouseUp: this.stop,
526
- onMouseLeave: this.stop
+ onMouseDown: e => (editable && !upDisabled ? this.up(e) : noop()),
+ onMouseUp: e => this.stop(e),
+ onMouseLeave: e => this.stop(e)
527
};
528
downEvents = {
529
- onMouseDown: editable && !downDisabled ? this.down : noop,
530
531
+ onMouseDown: e => (editable && !downDisabled ? this.down(e) : noop()),
532
533
534
return (
0 commit comments