Topic: Blazor Not Rendering
Expected behavior Forms to show the proper styling.
Actual behavior Does not render and/or console error of animate.js:367 Uncaught TypeError: Cannot read properties of null (reading 'style')
Using Blazor server side, MDBootstrap does not appear to render anything. I found another message about removing and adding the SCRIPT tag every render; however, this is not really working very well either.
Has anyone been able to get this to work with Blazor? At the moment the product is not compatible, and there is nothing pre-purchase indicating this is the case.
kpienkowska staff answered 2 years ago
If an element is present on the initial load it will auto-init, if some elements are added after DOM is loaded you cannot rely on auto-init - you have to use JS to init the components that are added. And dispose component if you remove it.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.0.0
- Device: Laptop
- Browser: Edge
- OS: Windows
- Provided sample code: No
- Provided link: No