flowbite-datepicker icon indicating copy to clipboard operation
flowbite-datepicker copied to clipboard

TodayHighlight rendering is not working correctly

Open dstockhammer opened this issue 1 year ago • 0 comments

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

dstockhammer avatar Nov 14 '22 19:11 dstockhammer