flowbite-datepicker
flowbite-datepicker copied to clipboard
TodayHighlight rendering is not working correctly
When using the standalone js import, the todayHighlight
rendering (class?) is broken after selecting any other date:
Here's how I'm using the plugin:
import { Alpine } from "alpinejs";
import FlowbiteDatepicker from "flowbite-datepicker/Datepicker";
export const Datepicker = (Alpine: Alpine) =>
Alpine.directive("datepicker", (el: Element) =>
new FlowbiteDatepicker(el, {
// todayBtn: true,
// todayBtnMode: 1,
todayHighlight: true,
clearBtn: true,
format: "dd/mm/yyyy",
}));