flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

javascript: reinit all events after DOMLoaded

Open KinG-InFeT opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. reattach events for all elements or single elements after DOMLoaded

Describe the solution you'd like

Describe alternatives you've considered i try re-dispatch DOMLoaded with this code

window.document.dispatchEvent(new Event("DOMContentLoaded", {
        bubbles: true,
        cancelable: true
    }));

but all exists elements not work after reinit

Additional context

KinG-InFeT avatar Mar 01 '22 15:03 KinG-InFeT

any update?

KinG-InFeT avatar May 13 '22 16:05 KinG-InFeT

Hello @KinG-InFeT,

We now load the event listener based on the window loaded event.

Is this issue still relevant?

Cheers, Zoltan

zoltanszogyenyi avatar Jan 03 '23 19:01 zoltanszogyenyi