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

[Bug] The validation error shows and disappear immediately #5989

Open
tlg05 opened this issue Jan 21, 2025 · 2 comments
Open

[Bug] The validation error shows and disappear immediately #5989

tlg05 opened this issue Jan 21, 2025 · 2 comments

Comments

@tlg05
Copy link

tlg05 commented Jan 21, 2025

Describe the bug
When submitting the form, the validation error will only show a very short period and then disappear.
It happens to the CDN import from https://cdn.form.io/formiojs/formio.full.min.js, and local npm install as well.

Version/Branch
5.0.0

To Reproduce
Steps to reproduce the behavior:

  1. Prepare a form with required fields.
  2. Submit the form with those fields empty.

Expected behavior
The validation error should just show and stay.

Screenshots
Image

Additional context
A codepen demo
https://codepen.io/dycbegbx-the-bold/pen/zxOJjeQ

@lane-formio
Copy link
Contributor

lane-formio commented Jan 27, 2025

https://cdn.form.io/js/formio.full.min.js

The 5.x renderer has had a namespace change and routes through /js instead of /formiojs can you try updating your cdn link?

@tlg05
Copy link
Author

tlg05 commented Jan 30, 2025

https://cdn.form.io/js/formio.full.min.js

The 5.x renderer has had a namespace change and routes through /js instead of /formiojs can you try updating your cdn link?

Thanks @lane-formio for replying. Yes, /js url works. But I use this cdn url just for easy demo in this thread. The real problem is when I use npm install to set up local project, the same issue still happens. So what can I do in my local project?
My versions are:
"dependencies": {
"@formio/js": "^5.0.0",
"@formio/react": "^5.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants