We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bda6b commit 72dcdd5Copy full SHA for 72dcdd5
1 file changed
src/components/TextInput/hooks.ts
@@ -383,7 +383,11 @@ export const useTextInput = (props: TextInputProps): TextInputHookReturn => {
383
}, [props.value]);
384
385
useImperativeHandle(ref, () => ({
386
- focus: () => input.current?.focus(),
+ focus: () => {
387
+ if (flags.isDisabled) return;
388
+
389
+ input.current?.focus();
390
+ },
391
clear: () => {
392
input.current?.clear();
393
0 commit comments