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

BUGFIX: Make sure that validation errors show up after clicking "Create New" in node creation dialog #3323

Conversation

grebaldi
Copy link
Contributor

@grebaldi grebaldi commented Jan 4, 2023

fixes: #3319

Turns out this could be achieved by simply setting the creation dialog's isDirty state to true when validation errors occur during handleApply.

On a side note, this made me wonder why there is an isDirty state for the creation dialog in the first place. It makes sense that the editor fields only show validation errors once they've been touched, but that is their concern. When "Create New" was clicked, all validation errors should show in any case.

Copy link
Member

@Sebobo Sebobo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, smart solution. Thx!

@crydotsnake crydotsnake self-requested a review January 14, 2023 18:20
Copy link
Member

@crydotsnake crydotsnake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! Works as expected. I like the solution :)

@crydotsnake crydotsnake added the Bug Label to mark the change as bugfix label Jan 14, 2023
@crydotsnake crydotsnake merged commit ff52fd4 into neos:7.3 Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.3 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Click on "Create New" does not trigger input validation in CreationDialog
3 participants