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

webui: Fix validity state during navigation #5099

Closed
wants to merge 2 commits into from

Conversation

mvollmer
Copy link

@mvollmer mvollmer commented Aug 29, 2023

This fixes a bug: When clicking on the currently active step, the "Next" button is disabled and isn't enabled again until the user does sufficient changes in the page.

Concretely, when the installer starts up and shows the "Welcome" step, clicking on "Welcome" in the left column will disable "Next". Selecting a different language than the current one will enable it again.

This PR fixes that by not changing the validation state in goToPage if no navigation will actually happen.

goToPage used "false" as the default, the rest are using "true".
Let's standardize on "true" as the default.
Without navigation, the step component remains the same and will not
be triggered into re-computing the validity state.
@jkonecny12
Copy link
Member

Not sure but isn't this duplicate of #5084 ?
@rvykydal

@mvollmer
Copy link
Author

Not sure but isn't this duplicate of #5084 ? @rvykydal

Ouch, indeed! :-)

@mvollmer mvollmer closed this Aug 29, 2023
@rvykydal
Copy link
Contributor

@mvollmer thank you for the patch, but we have the #5084 already tracked in our planning, also it has also tests update included so I've merged it. Nevertheless, if you think I've missed something feel free to open additional PR :)

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

Successfully merging this pull request may close these issues.

3 participants