Skip to content

Commit 884c366

Browse files
RopRaptorkonradobozaOstafinL
authored
IBX-10668: make date picker configuration respect 'isStatic' attribute (#1741)
Co-authored-by: konradoboza <[email protected]> Co-authored-by: Łukasz Ostafin <[email protected]>
1 parent a398bea commit 884c366

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bundle/Resources/public/js/scripts/core/date.time.picker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ class DateTimePicker {
136136

137137
init() {
138138
const flatpickr = getFlatpickr();
139+
140+
this.flatpickrConfig.static = this.inputField.dataset.isStatic === 'true';
139141
this.flatpickrInstance = flatpickr(this.inputField, this.flatpickrConfig);
140142

141143
this.inputField.addEventListener('input', this.onInput, false);

0 commit comments

Comments
 (0)