-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Superforms with GridStack #456
Comments
I'd need a MRE on SvelteLab to investigate further, without shadcn-svelte preferably, as components can easily complicate things. |
Hi, sorry for the late reply, i think i have figured out the issue, it is because i am using superform along with GridStack, seems they are not compatible? Do you have any suggestion? |
I have never used GridStack, sorry. We can change this thread to be about how to integrate it. |
The input element indeed loses focus when I click outside of it, as confirmed by checking |
Could you explain the underlying logic or method you use to detect if an input element is focused? |
Description
When forcing client-side validation when the input loses focus, setting 'onblur' for validationMethod does not seem work, while 'oninput' does work. The input element comes from shadcn-svelte Form component. It acts exactly the same as the default method.
If applicable, a MRE
superForm(serverForm, { dataType: 'json', validators: schemasafeClient(schema), id: id, validationMethod: 'auto' });
this is the code I use to construct the form on client side.
The text was updated successfully, but these errors were encountered: