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

Allow disabling the auto-validation on value change #2661

Merged
merged 4 commits into from
Mar 5, 2024
Merged

Conversation

falkoschindler
Copy link
Contributor

This PR introduces a .without_auto_validation() builder method to avoid validating the value on every value change as requested in #2618:

i = ui.input(validation={'Input too long': lambda value: len(value) < 3}).without_auto_validation()
ui.button('Validate', on_click=i.validate)

@falkoschindler falkoschindler added the enhancement New feature or request label Mar 4, 2024
@falkoschindler falkoschindler added this to the 1.4.18 milestone Mar 4, 2024
@rodja rodja merged commit c7fd5d8 into main Mar 5, 2024
7 checks passed
@rodja rodja deleted the auto-validate branch March 5, 2024 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants