-
Notifications
You must be signed in to change notification settings - Fork 25
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
v0.8.14 broke Umbraco Forms or "how to exclude forms" #127
Comments
I found the undocumented |
The suspect PR does seem most likely, as it changes validation from often synchronous to always asynchronous. But I have no idea why it would be a specific problem in an Umbraco world in a way that doesn't seem to be causing problems more generally. Presumably its relationship with some sort of Umbraco Forms event handling. Shot in the dark: does behavior change if you rearrange where the
AFAIK the old jQuery Validation didn't have any form/input caching, so #110 in particular tried to fix that up, but I'm sure there are gaps. Are you initializing your |
Thanks for replying! I also believe it is due to Umbraco Forms including aspnet-client-validation on their end, but the fact remains it can be worked around by leaving out Anyhow I would be happy to just be able to exclude certain forms from even being bootstrapped by my initialization, because right now I can't have 2 forms (UC/non-UC) on the same page or they will conflict :) The I'll try the v0.10.0 release using |
I attached a logger and the behavior is a little more sinister than I thought :) Upon clicking submit on an Umbraco Forms form the validation service I created (not Umbraco Forms) goes into an infinite validation loop for some reason (it doesn't crash the browser though). I did however try the latest package, 0.11.0, and did |
We should support "don't scan" better. Ideas:
aspnet-client-validation/src/index.ts Lines 1409 to 1422 in 061c242
In the meantime, you can specify a different |
Sure, I think option 2 is the better of the two. Thanks for the tip, it looks like I can then manually call This should work: |
HI!
I realize I haven't updated the package in a year, but I got around to it and now our generated "Umbraco Forms" (a UI form builder for Umbraco) forms don't submit in versions above 0.8.13 (nothing happens on click, no errors).
"disabled" is added to the submit button when I click it but I suspect it might be Umbraco Forms that does some debouncing thing to prevent multiple submissions.
If I remove the creation of the
ValidationService
along with the call tobootstrap()
the Umbraco Forms form will submit again, so it's something with the lib I think.Anyway I tracked it down to 0.8.14 and there's a suspect fix there but I can't be sure of course. It seems to be happening in most browsers, not just FF.
This brings me to a question that I had while trying to fix this problem on my end - can I exclude certain forms from being considered by the ValidationService at all?
EDIT: I realize I haven't provided a repro, but it requires a full Umbraco site setup + Umbraco Forms. But maybe you have some ideas anyway.
The text was updated successfully, but these errors were encountered: