themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.74k stars 727 forks source link

DatePicker in Angular not working #701

Closed torresmald closed 3 months ago

torresmald commented 11 months ago

Using Angular 16 with lazy load the datepicker doesnt show the dates.

  1. Installed Tailwind with Angular--> working fine.
  2. Used datepicker in the app component--> working fine.
  3. Tried to use the datepicker in any other module using lazy load--> not working

Tried to apply the @Flowbit decorator but not working too.

When you use the loadChildren in the app-routing.module the datepicker is not working in their own module

GitHubish commented 8 months ago

same problem - i think there's something wrong with the initialization. it would be cool to have some help and an example.

issamjebrane commented 3 months ago

same goes for me

zoltanszogyenyi commented 3 months ago

This PR will make it work: https://github.com/themesberg/flowbite/tree/datepicker-instance

zoltanszogyenyi commented 3 months ago

It will be available in version 2.4.0.

zoltanszogyenyi commented 3 months ago

Hey everyone,

Good news! The datepicker now works with Angular too, please install v2.4.1:

https://flowbite.com/docs/components/datepicker/#javascript-behaviour https://github.com/themesberg/tailwind-angular-starter

This repo also has the datepicker configured.

Cheers, Zoltan