You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently, when setting the
value
parameter ofinput_date()
toNone
, the default behavior inpy_shiny
is to display the current date, rather than an empty input. This differs from the behavior inR's Shiny
, where an empty input is shown whenNULL
is specified.While a workaround exists by setting the value parameter to
pd.NaT
, this approach does not apply toupdate_date()
. If thevalue
parameter forupdate_date()
is explicitly set toNone
, no changes occur, and the same workaround is ineffective.Proposed Improvement
It would be beneficial to allow users to define a
None
value for bothinput_date()
andupdate_date()
components that allow to render/update an input date as empty. This change would alignpy_shiny
more closely with the expected behavior inR's Shiny
and improve user experience.The text was updated successfully, but these errors were encountered: