I’m trying to use UIkit (https://getuikit.com/) and I have been struggling with it.
When the page renders for the first time everything works fine. All the icons work, etc. However, once the second render happens as part of the socket connecting the uikit components get all wonky. As an example some of the dropdowns stop working, icons disappear, etc.
I assume this is because uikit injects functionality by manipulating the dom after some event. Once liveview messes around in the dom this is partially broken.
I have been trying to understand the uikit JS code but it’s… unlike any JS code that I have ever seen…
Does anybody know if there is some magic liveview hook that I could attach to, together with some magic, undocumented uikit stuff that I could use to make this work?
I have tried things like OnPatchEnd, I have tried hooks for every uikit component with a mounted hook, I have tried global uikit.update()
, basically anything that I could think of.