flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

DatePicker in Angular not working

Open torresmald opened this issue 2 years ago • 1 comments

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

torresmald avatar Nov 01 '23 16:11 torresmald

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

GitHubish avatar Jan 18 '24 14:01 GitHubish

same goes for me

issamjebrane avatar Jun 22 '24 11:06 issamjebrane

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

zoltanszogyenyi avatar Jun 26 '24 13:06 zoltanszogyenyi

It will be available in version 2.4.0.

zoltanszogyenyi avatar Jun 26 '24 13:06 zoltanszogyenyi

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

zoltanszogyenyi avatar Jun 27 '24 10:06 zoltanszogyenyi