posit-dev / py-shiny-site

The documentation website for Shiny for Python
https://shiny.posit.co/py/
MIT License
17 stars 17 forks source link

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

Closed Bnjmn83 closed 2 months ago

Bnjmn83 commented 2 months ago

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"
)
Bnjmn83 commented 2 months ago

damn wrong repo