Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(input): preventing the input from losing focus on keypress in Safari when autofill occurs #5221

2 changes: 2 additions & 0 deletions packages/calcite-components/src/utils/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ function syncHiddenFormInput(component: FormComponent): void {
docFrag = ownerDocument!.createDocumentFragment();
}

input.inert = true;

docFrag.append(input);

// emits when hidden input is autofilled
Expand Down
Loading