{
this.props.onError?.(error); // emit error outside
}
}
- });
+ }
// avoid excessive validations during typing
validateLazy = debounce(this.validate, 250);
- bindRef = (elem: HTMLElement) => this.containerElem = elem;
+ protected bindRef(elem: HTMLElement) {
+ this.containerElem = elem;
+ }
render() {
const { className, style } = this.props;
return (
{
- label: ReactNode;
+ label: React.ReactNode;
options: T[];
}
@@ -31,7 +34,7 @@ export interface SelectOption {
label?: React.ReactNode;
}
-export interface SelectProps extends ReactSelectProps, CreatableProps {
+export interface SelectProps extends ReactSelectProps, CreatableProps> {
id?: string; // Optional only because of Extension API. Required to make Select deterministic in unit tests
value?: T;
themeName?: "dark" | "light" | "outlined" | "lens";
@@ -61,12 +64,16 @@ export class Select extends React.Component