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

[Improvement] Allow None Value for input_date() and update_date() #1713

Open
mhanf opened this issue Oct 2, 2024 · 0 comments
Open

[Improvement] Allow None Value for input_date() and update_date() #1713

mhanf opened this issue Oct 2, 2024 · 0 comments

Comments

@mhanf
Copy link

mhanf commented Oct 2, 2024

Currently, when setting the value parameter of input_date() to None, the default behavior in py_shiny is to display the current date, rather than an empty input. This differs from the behavior in R's Shiny, where an empty input is shown when NULL is specified.

While a workaround exists by setting the value parameter to pd.NaT, this approach does not apply to update_date(). If the value parameter for update_date() is explicitly set to None, no changes occur, and the same workaround is ineffective.

Proposed Improvement

It would be beneficial to allow users to define a None value for both input_date() and update_date() components that allow to render/update an input date as empty. This change would align py_shiny more closely with the expected behavior in R's Shiny and improve user experience.

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