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

Docs: "Input element with date picker" - menu is closed when clicking "<" or ">" #2894

Closed
digidigital opened this issue Apr 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@digidigital
Copy link

digidigital commented Apr 14, 2024

Description

The "menu with date picker" is closed when you try to change the month or year with "<" or ">" .

The fix for me was to add .props('auto-close=false') to ui.menu()

date_day = ui.input('Datum')
                    
with date_day.add_slot('append'):
     ui.icon('edit_calendar').on('click', lambda: menu_day.open()).classes('cursor-pointer')
                    
with ui.menu().props('auto-close=false') as menu_day:
     ui.date(mask="DD.MM.YYYY").bind_value(date_day)
@falkoschindler
Copy link
Contributor

Oh wow, thanks for reporting this issue, @digidigital!
This is caused by a change in the auto-close behavior we did for PR #2855. It also breaks ui.color_input in a similar way. We'll release a bugfix shortly.

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

No branches or pull requests

2 participants