In either Chrome or Firefox, local development or production:
click on date input
sometimes popup displays correctly
sometimes popup content is displayed in the page body, without styling (see screenshot)
When refreshing the page, it keeps crashing.
We use React, Tailwind, Twin macro
So far I didn’t meet this kind of behavior before. I’ll have to ask for some more details about your usage so I can have some context around your usage:
When the popup displays incorrectly do you have errors in the console? If yes, can you please share the whole error message?
Which version of Mobiscroll are you using?
Can you please share the component’s initialization code?
I don’t have any console error. You can see in my screenshot popup content at the bottom, but the popup itself is not displayed in the middle of the page
Thanks Sizli, you put me on the right track : the mobiscroll css was imported in a subcomponent so it was loaded only after visiting it.
It seems to work now!