Comments (4)
My issue is the same, but I am using Flask.
from flowbite.
My solution is to ensure that the entire page is loaded before getting the modal instance:
window.addEventListener('load', () => {
const modal = FlowbiteInstances.getInstance('Modal', 'modal-id')
modal.show()
})
It works fine.
from flowbite.
ok thanks but "FlowbiteInstances" give me an error: Cannot find name FlowbiteInstances. how did you import it?
from flowbite.
In my case, FlowbiteInstances
is a global object imported to my code via CDN, that means it comes inside the window object after the DOM has rendered.
window.FlowbiteInstances
the docs.
from flowbite.
Related Issues (20)
- Bug: Sidebar Fails to Darken When Right-Side Drawer Opens
- Flowbite Navigation Routing Mistake
- Event object isn't correctly passed to Dropdown.Item click handler
- Uncaught TypeError: Cannot read properties of null (reading 'render') Turbo-rails + Flowbite
- Support the Popover api
- Blazor SSR Flowbite not initializing after navigation HOT 1
- DatePicker does not work in Blazor wasm
- Dropdown close with trigger type hover
- Image Placeholder Should Display Only Image Without Text
- Modal Dialog not showing when navigating back to the same route using Router Outlet (Angular)
- Indeterminate Checkbox should not change on hover if disabled.
- Popover and Tooltip cause overflow (white space in page) when window resize HOT 1
- Datarange picker does not become inline HOT 1
- Modal over Modal, can not be removed appropriately HOT 1
- Two handles on range sladers
- Dropdown Component Not Initializing correctly on Navigation with Angular RouterLink
- [Feature] - make components in other framwroks also not only html HOT 1
- How to use Pause() method to stop slider on Hover in Tailwind CSS Carousel - Flowbite
- Carousel component stops working when navigating back to page in Astro with View Transitions
- Select component > Multiple selection bug HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowbite.