themesberg / flowbite-datepicker

A Tailwind CSS datepicker built with vanilla JavaScript
https://flowbite.com/docs/components/datepicker/
MIT License
139 stars 42 forks source link

TodayHighlight rendering is not working correctly #3

Open dstockhammer opened 1 year ago

dstockhammer commented 1 year ago

When using the standalone js import, the todayHighlight rendering (class?) is broken after selecting any other date:

image image

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",
    }));