Created
August 13, 2022 03:45
-
-
Save williamherry/f5f5266b50bf23000349f2ef41a16754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open(selectedDates, dateStr, instance) { | |
this.hotfix(); | |
} | |
monthChange(selectedDates, dateStr, instance) { | |
this.hotfix(); | |
} | |
yearChange(selectedDates, dateStr, instance) { | |
this.hotfix(); | |
} | |
hotfix() { | |
$(this.calendarContainerTarget).removeAttr("tabindex") | |
$(this.calendarContainerTarget).find("[tabindex='-1']").removeAttr("tabindex") | |
$(this.calendarContainerTarget).find(".cur-year").css("pointer-events", "none") | |
$(this.calendarContainerTarget).find(".flatpickr-monthDropdown-months").css("pointer-events", "none") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment