File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/bootstrap_datepicker_plus
static/bootstrap_datepicker_plus/js Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class WidgetSettings(BaseSettings):
3939 bootstrap_icon_css_url : Optional [
4040 str
4141 ] = "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"
42- app_static_url = "https://cdn.jsdelivr.net/gh/monim67/django-bootstrap-datepicker-plus@5.0.0 /src/bootstrap_datepicker_plus/static/bootstrap_datepicker_plus/"
42+ app_static_url = "https://cdn.jsdelivr.net/gh/monim67/django-bootstrap-datepicker-plus@5.0.2 /src/bootstrap_datepicker_plus/static/bootstrap_datepicker_plus/"
4343 debug : bool = Field (default_factory = lambda : getattr (django_settings , "DEBUG" , True ))
4444
4545 @validator ("addon_icon_classes" )
Original file line number Diff line number Diff line change 116116 const widgetInstance = { config, $element : $inputWrapper , dateTimePickerData : $inputWrapper . data ( "DateTimePicker" ) }
117117 widgetInstance . dateTimePickerData . date ( moment ( hiddenInputElement . value , config . backend_date_format ) ) ;
118118 widgetInstance . $element . on ( "dp.change" , function ( e ) {
119- hiddenInputElement . value = e . date . format ( config . backend_date_format ) ;
119+ hiddenInputElement . value = e . date ? e . date . format ( config . backend_date_format ) : null ;
120120 } ) ;
121121 for ( let [ eventName , handler ] of Object . entries ( config . events ) ) {
122122 widgetInstance . $element . on ( eventName , handler ) ;
You can’t perform that action at this time.
0 commit comments