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

ui.input validation will remain space after it's value was corrected #3013

Open
atticus-lv opened this issue May 4, 2024 · 3 comments · May be fixed by #2492
Open

ui.input validation will remain space after it's value was corrected #3013

atticus-lv opened this issue May 4, 2024 · 3 comments · May be fixed by #2492
Labels
bug Something isn't working
Milestone

Comments

@atticus-lv
Copy link

Description

2024-05-04.09-22-39.mp4

Code:

from nicegui import ui

with ui.row():
    ui.input('Version', value='4.1.1', placeholder='4.1.1',
             validation={
                 'error str': lambda v: v.count('.') == 2 and v.replace(
                     '.',
                     '').isdigit(),
             },) \
        .style('width: 200px') \

    ui.input('Version2', value="1.3.0", placeholder='1.3.0',
             validation={
                 'error str': lambda v: v.count('.') == 2 and v.replace(
                     '.',
                     '').isdigit(),
             },)\
        .style('width: 200px') \

    ui.select(value='stable',options =
        {'stable': 'Stable',
         'beta': 'Beta',
         'alpha': 'Alpha'},)

ui.input('Name', value = '').style('width: 500px')

ui.run(native=True)
@atticus-lv atticus-lv changed the title ui.input validation will remain space after it's value was corrented ui.input validation will remain space after it's value was corrected May 4, 2024
@rodja
Copy link
Member

rodja commented May 4, 2024

Use the Quasar prop hide-bottom-space as described in the Quasar documentaion.

@atticus-lv
Copy link
Author

thanks it works...maybe this should set by default

@falkoschindler
Copy link
Contributor

This has been discussed in #2484 and fixed in PR #2492. But because it breaks existing layouts, it is scheduled to be released in version 2.0.

@falkoschindler falkoschindler added the bug Something isn't working label May 4, 2024
@falkoschindler falkoschindler added this to the 2.0.0 milestone May 4, 2024
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 a pull request may close this issue.

3 participants