Skip to content

Commit

Permalink
Handle setting None value on DateRangePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 8, 2024
1 parent aeadfe4 commit 7c43b88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions panel/widgets/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,8 +607,11 @@ def _process_property_change(self, msg):

def _process_param_change(self, msg):
msg = super()._process_param_change(msg)
if 'value' in msg:
msg['value'] = tuple(self._convert_date_to_string(v) for v in msg['value'])
if 'value' in msg and msg['value'] is not None:
msg['value'] = tuple(
v if v is None else self._convert_date_to_string(v)
for v in msg['value']
)
if 'min_date' in msg:
msg['min_date'] = self._convert_date_to_string(msg['min_date'])
if 'max_date' in msg:
Expand Down

0 comments on commit 7c43b88

Please sign in to comment.