* Updates the values of inputs associated with the calendar
(triggerChange = true)
| 2834 | * Updates the values of inputs associated with the calendar |
| 2835 | */ |
| 2836 | function updateValue(triggerChange = true) { |
| 2837 | if (self.mobileInput !== undefined && self.mobileFormatStr) { |
| 2838 | self.mobileInput.value = |
| 2839 | self.latestSelectedDateObj !== undefined |
| 2840 | ? self.formatDate(self.latestSelectedDateObj, self.mobileFormatStr) |
| 2841 | : ""; |
| 2842 | } |
| 2843 | |
| 2844 | self.input.value = getDateStr(self.config.dateFormat); |
| 2845 | |
| 2846 | if (self.altInput !== undefined) { |
| 2847 | self.altInput.value = getDateStr(self.config.altFormat); |
| 2848 | } |
| 2849 | |
| 2850 | if (triggerChange !== false) triggerEvent("onValueUpdate"); |
| 2851 | } |
| 2852 | |
| 2853 | function onMonthNavClick(e: MouseEvent) { |
| 2854 | const eventTarget = getEventTarget(e); |
no test coverage detected
searching dependent graphs…