Skip to content

Commit 5e07713

Browse files
Mohammad DayyanMohammad Dayyan
authored andcommitted
preparation
1 parent a82aa4e commit 5e07713

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

demo/demo.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const fromToDateTitleElements = document.querySelectorAll('[data-name="from-to-d
99
const textFormatElement = document.querySelector('[data-name="text-format"]');
1010
const dateFormatElement = document.querySelector('[data-name="date-format"]');
1111

12+
const modalModeRadioOptions = document.querySelectorAll('input[name="modalModeRadioOptions"]');
1213
const inLineRadioOptions = document.querySelectorAll('input[name="inLineRadioOptions"]');
1314
const rangeSelectorRadioOptions = document.querySelectorAll('input[name="rangeSelectorRadioOptions"]');
1415
const rangeSelectorMonthsToShowStartInputElements = document.querySelector('[data-name="rangeSelectorMonthsToShow-start"]');
@@ -59,7 +60,8 @@ function optionOnChange(optionName, value) {
5960
normalDtpContainer.hidden = true;
6061
inLineDtpContainer.hidden = false;
6162
inLine = true;
62-
break;
63+
modalModeRadioOptions.forEach(e => e.checked = e.value == 'false');
64+
break;
6365
case false:
6466
normalDtpContainer.hidden = false;
6567
inLineDtpContainer.hidden = true;
@@ -188,6 +190,12 @@ function optionOnChange(optionName, value) {
188190
break;
189191

190192
case 'inLine':
193+
dtp1.updateOptions({
194+
modalMode: false
195+
});
196+
dtp2.updateOptions({
197+
modalMode: false
198+
});
191199
break;
192200

193201
case 'modalMode':

0 commit comments

Comments
 (0)