-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
submit is not public #4015
Comments
@popmanhe You just need to call it from the ref. See this documention |
If you look at the playground code we are using the method just fine. Can you just try it? |
You are also welcome to submit a PR making the change you suggested. |
@popmanhe programmatic submit was not added until v5.0.0 (see changelog). Try migrating to v5 |
Yes, it works in v5. even if it's not a public method. I don't know why. You may not need this PR. But according to this page, v4 also supports programmatic submit. |
Ah, I was mistaken. Programmatic submit was in v4, but there were issues that were fixed in v5. This comment describes a workaround to a similar-sounding issue. Maybe this would help you? |
Leaving my two cents: I was having issues with the programmatic submit when I got here in the first place. Looking at the playground code @heath-freenome shared, I realized that the docs are incorrect, using Using the approach at the playground code works for me. Discussion https://stackoverflow.com/a/54620836 |
@codeinearts If you are using the |
Prerequisites
What theme are you using?
core
Version
4.2.3
Current Behavior
But actually, the submit method is private, and can not be called from outside.
Expected Behavior
Can be called from outside. Like in the sample, yourForm.submit();
Steps To Reproduce
No response
Environment
Anything else?
The fix is pretty simple. Just make it the public method.
Change from
to
The bug exists in 4.x and 5.x
The text was updated successfully, but these errors were encountered: