Skip to content

Instantly share code, notes, and snippets.

@sbounmy
Last active August 16, 2017 21:52
Show Gist options
  • Save sbounmy/cccf5f7f5ae153d02bb8a17d8401f78c to your computer and use it in GitHub Desktop.
Save sbounmy/cccf5f7f5ae153d02bb8a17d8401f78c to your computer and use it in GitHub Desktop.
Make flatpickr to work witgh squarespace lightbox
$(document).ready(function() {
// Static: true fixes when flatpickr is in lightbox
$('.lightbox-handle').on('click', function() {
$("#text-yui_3_17_2_1_1500409984147_44339-field").flatpickr({
static: true,
locale: 'fr',
mode: "range",
altFormat: "d M",
altInput: true,
dateFormat: 'd-m-Y',
minDate: 'today'
});
});
});
.sqs-modal-lightbox-content {
z-index: 1000 !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment