mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-26 11:43:01 +00:00
add support for function values
This commit is contained in:
@@ -100,7 +100,7 @@ const Text = createClass({
|
||||
const { code } = e;
|
||||
const { field } = this.props;
|
||||
const { value } = this.state;
|
||||
const match = value.match(NUMBER_PATTERN);
|
||||
const match = value?.match(NUMBER_PATTERN);
|
||||
if(code === 'ArrowDown') {
|
||||
if(match && match[3] && CSS.supports(field.name, value)) {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user