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

Reserve bottom space for error message #3446

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Reserve bottom space for error message #3446

merged 1 commit into from
Aug 6, 2024

Conversation

falkoschindler
Copy link
Contributor

@falkoschindler falkoschindler commented Aug 6, 2024

This PR follows the previous discussions in #2484, #2492, #2738, and #3013 to initialize the "error" prop of validation elements to avoid them to resize when error messages appear while typing.

Demonstration:

ui.input('Name', validation={'Too short': lambda value: len(value) >= 3}).classes('border')

The bottom space is right there when loading the page.

@falkoschindler falkoschindler added the bug Something isn't working label Aug 6, 2024
@falkoschindler falkoschindler added this to the 2.0.0 milestone Aug 6, 2024
@rodja rodja merged commit d405d0d into main Aug 6, 2024
7 checks passed
@rodja rodja deleted the reserve-bottom-space branch August 6, 2024 15:23
falkoschindler added a commit that referenced this pull request Aug 6, 2024
rodja pushed a commit that referenced this pull request Aug 12, 2024
* use "exposes_libraries" instead of "libraries"

* use "exposes_libraries" instead of "extra_libraries"

* add example "signature-pad" on how to use npm dependencies

* try to create example with npm and webpack

* fix import

* reserve bottom space for error message (#3446)

* Revert "reserve bottom space for error message (#3446)"

This reverts commit d405d0d.

* fix is_even example

* introduce `dependencies` parameter

* improve READMEs

* add new examples to examples.py

* add section about custom components to the documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui.input validation will remain space after it's value was corrected
2 participants