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 0b62a8c commit 776235cCopy full SHA for 776235c
components/widgets/NumberInput.jsx
@@ -11,6 +11,7 @@ import React from 'react';
11
import classNames from 'classnames';
12
import PropTypes from 'prop-types';
13
14
+import MiscUtils from '../../utils/MiscUtils';
15
import Icon from '../Icon';
16
17
import './style/NumberInput.css';
@@ -124,6 +125,7 @@ export default class NumberInput extends React.Component {
124
125
onKeyDown = (ev) => {
126
if (ev.key === 'Enter') {
127
this.commit();
128
+ MiscUtils.killEvent(ev);
129
}
130
// Ensure prefix/suffix isn't changed
131
const selStart = ev.target.selectionStart;
0 commit comments