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

pat-validation disables "Cancel" Button on validation error #1259

Closed
petschki opened this issue Dec 9, 2022 · 2 comments
Closed

pat-validation disables "Cancel" Button on validation error #1259

petschki opened this issue Dec 9, 2022 · 2 comments

Comments

@petschki
Copy link
Member

petschki commented Dec 9, 2022

What I did:

  • Create an Item somewhere
  • try to Cancel without filling any data

What I expect to happen

I can click the "Cancel" button and get back to where I came

What happened

Cancel Button is disabled and cannot be clicked

Reason

The title field is required and gets a validation error on blur from pat-validation -> buttons at the bottom gets disabled.

Solution

Define which button should be disabled on validation errors. Has pat-validation a configuration for this @thet ?

@petschki
Copy link
Member Author

see also root cause here Patternslib/Patterns#1132

@petschki
Copy link
Member Author

Fixed root cause here Patternslib/Patterns#1163 and released in

@patternslib/patternslib=9.9.0-beta.1
@plone/mockup=5.0.12
@plone/mockup=5.1.0-alpha.4
plone.staticresources==2.0.11
plone.staticresources==2.1.2

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

No branches or pull requests

1 participant