Skip to content

Commit

Permalink
Fixed calendar widget creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Apr 18, 2024
1 parent a8cc1f6 commit 548b4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/CalendarWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export default class CalendarWidget extends InputWidget {
initFlatpickr(Flatpickr) {
// Create a new flatpickr.
this.calendar = new Flatpickr(this._input, { ...this.settings, disableMobile: true });
this.calendar.altInput.addEventListener('input', (event) => {
this.addEventListener(this.calendar.altInput, 'input', (event) => {
if (this.settings.allowInput && this.settings.currentValue !== event.target.value) {
this.settings.manualInputValue = event.target.value;
this.settings.isManuallyOverriddenValue = true;
Expand Down

0 comments on commit 548b4c5

Please sign in to comment.