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

input_date component: value and max cannot be the same #1689

Open
Bnjmn83 opened this issue Sep 18, 2024 · 0 comments
Open

input_date component: value and max cannot be the same #1689

Bnjmn83 opened this issue Sep 18, 2024 · 0 comments

Comments

@Bnjmn83
Copy link

Bnjmn83 commented Sep 18, 2024

If I set max and value to the same value the date string is not rendered, just an empty input field. It seems max date needs to be bigger than value but the docs say:

"Max: The maximum allowed date."

Python 3.11.6
shiny==1.1.0

min_date = datetime.now()
max_date = min_date + relativedelta(days=10)

ui.input_date(
    "start_date_picker",
    "Start Date:",
    value=max_date,
    min=min_date,
    max=max_date,
    format="dd.mm.yyyy",
    language="de"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant