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

Builder: missing builderFormValidityChange event on delete component #5791

Open
rzorzorzo opened this issue Sep 4, 2024 · 1 comment
Open
Assignees

Comments

@rzorzorzo
Copy link

Describe the bug
Builder: when removing an invalid component, so that the form becomes valid, the lib should emit a builderFormValidityChange event

Version/Branch
5.0.0-rc.76

To Reproduce
Steps to reproduce the behavior:

  1. open empty form in builder
  2. Add Input component
  3. Add another Input component with same api key
  4. Error is show and builderFormValidityChange event is emitted
  5. remove the second component
  6. Error is no longer shown, but no builderFormValidityChange event is emitted

Note: The arg of the event is not a boolean, as expected, but the form, from which it is not possible to get the validity state

Expected behavior
builderFormValidityChange event is emitted

workaround:
to check validity: .querySelector("[aria-invalid=true]")
check validity on removeComponent event

@lane-formio
Copy link
Contributor

Is this still happening on rc.88?

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

3 participants