diff --git a/packages/amis/src/renderers/Form/Select.tsx b/packages/amis/src/renderers/Form/Select.tsx index 78e052fd3..07853b97f 100644 --- a/packages/amis/src/renderers/Form/Select.tsx +++ b/packages/amis/src/renderers/Form/Select.tsx @@ -229,7 +229,7 @@ export default class SelectControl extends React.Component { } focus() { - this.input && this.input.focus(); + this.input && this.input?.focus(); } getValue(