diff --git a/src/FeatureLabelModal/FeatureLabelModal.tsx b/src/FeatureLabelModal/FeatureLabelModal.tsx index af9ff89ec..c0215c0d0 100644 --- a/src/FeatureLabelModal/FeatureLabelModal.tsx +++ b/src/FeatureLabelModal/FeatureLabelModal.tsx @@ -58,7 +58,9 @@ export const FeatureLabelModal: React.FC = ({ onOk={onOkInternal} onCancel={onCancel} afterOpenChange={(open) => { - open && inputRef.current?.focus(); + if (open) { + inputRef.current?.focus(); + } }} {...passThroughProps} >