Skip to content

Commit b225324

Browse files
committed
improve Field typescript definition
Signed-off-by: Michael Telatynski <[email protected]>
1 parent bd5a81e commit b225324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/elements/Field.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import React from 'react';
1818
import classNames from 'classnames';
1919
import * as sdk from '../../../index';
2020
import { debounce } from 'lodash';
21-
import {IFieldState, IValidationResult} from "../elements/Validation";
21+
import {IFieldState, IValidationResult} from "./Validation";
2222

2323
// Invoke validation from user input (when typing, etc.) at most once every N ms.
2424
const VALIDATION_THROTTLE_MS = 200;
@@ -29,7 +29,7 @@ function getId() {
2929
return `${BASE_ID}_${count++}`;
3030
}
3131

32-
interface IProps extends React.InputHTMLAttributes<HTMLSelectElement | HTMLInputElement> {
32+
interface IProps extends React.InputHTMLAttributes<HTMLSelectElement | HTMLInputElement | HTMLTextAreaElement> {
3333
// The field's ID, which binds the input and label together. Immutable.
3434
id?: string,
3535
// The element to create. Defaults to "input".

0 commit comments

Comments
 (0)