diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/components/Cell.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/src/renderer/components/Cell.tsx b/gui/src/renderer/components/Cell.tsx index 336b3171f0..1848426e91 100644 --- a/gui/src/renderer/components/Cell.tsx +++ b/gui/src/renderer/components/Cell.tsx @@ -154,12 +154,15 @@ export class Input extends React.Component<IInputProps, IInputState> { ...otherProps } = this.props; + const valid = validateValue?.(this.state.value); + return ( <CellDisabledContext.Consumer> {(disabled) => ( <StyledInput type="text" - valid={validateValue?.(this.state.value)} + valid={valid} + aria-invalid={!valid} onChange={this.onChange} onFocus={this.onFocus} onBlur={this.onBlur} |
