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):
39
39
bootstrap_icon_css_url : Optional [
40
40
str
41
41
] = "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/"
43
43
debug : bool = Field (default_factory = lambda : getattr (django_settings , "DEBUG" , True ))
44
44
45
45
@validator ("addon_icon_classes" )
Original file line number Diff line number Diff line change 116
116
const widgetInstance = { config, $element : $inputWrapper , dateTimePickerData : $inputWrapper . data ( "DateTimePicker" ) }
117
117
widgetInstance . dateTimePickerData . date ( moment ( hiddenInputElement . value , config . backend_date_format ) ) ;
118
118
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 ;
120
120
} ) ;
121
121
for ( let [ eventName , handler ] of Object . entries ( config . events ) ) {
122
122
widgetInstance . $element . on ( eventName , handler ) ;
You can’t perform that action at this time.
0 commit comments