tailwind-blazor-starter icon indicating copy to clipboard operation
tailwind-blazor-starter copied to clipboard

Modal Fix In Template Project

Open chrisoChen opened this issue 2 years ago • 0 comments

Added fix so modal opens after clicking on the button in the tailwind template starter project

Fix involves the following:

  1. Use libman instead of npm to install flowbite to the starter project
  2. Add a missing attribute, data-modal-target to get the modal to open
  3. Use IJSRuntime to invoke the flowbite function initModals to initialize the modal

Note: Must manually use libman to install flowbite to the wwwroot folder to work. Library files for flowbite have been excluded in this commit.

Screenshot 2023-12-10 121335 Screenshot 2023-12-10 121453

chrisoChen avatar Dec 10 '23 21:12 chrisoChen