You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you using different script tags to import components and different to initialize the Modal? If this is the case then the second script doesn't know about the imported modal from other scripts. You have to import it in the second one aswell
"tw-elements": "^2.0.0",
import { Input, Tab, Carousel, Offcanvas, Collapse, Dropdown, Tooltip, Modal, Ripple, initTWE } from 'tw-elements';
<script> const myModalEl = document.getElementById("exampleModalCenter"); const modal = new Modal(myModalEl); function login() { modal.show(); } </script>initTWE({ Input, Tab, Carousel, Offcanvas, Collapse, Dropdown, Tooltip, Modal, Ripple });
The text was updated successfully, but these errors were encountered: