Skip to content

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

@Bnjmn83

Description

@Bnjmn83

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"
)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions