Skip to content

Instantly share code, notes, and snippets.

@williamherry
Created August 13, 2022 03:45
Show Gist options
  • Save williamherry/f5f5266b50bf23000349f2ef41a16754 to your computer and use it in GitHub Desktop.
Save williamherry/f5f5266b50bf23000349f2ef41a16754 to your computer and use it in GitHub Desktop.
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