yeah, it seems nothing fixes the modal problem, but oh well, tabs are the new modals! haha
tried it on a couple browsers and checked template Moss made for bitwig and it is all the same problem. I dont really need modals inside of panels. can just lift them to the main the tab container.
then it works fine. just cant code it quite as clean but what evs.
Tabs are a great alternative. If it's just modal's inside panels that are causing the bug, another long-winded solution that you could try is the following. Create a modal button outside the panel. Inside the panel, have a toggle button that when the value is on, it'll set(idForModal , value) the modal to on/off depending on the toggle button widget. This way, the modal works but just lives outside the panel.
I use OSC for several things. Mainly, my music / cubase needs. In addition, I use it for simple windows scripts, toggling settings on/off for applications, pretty much anything that I want to use a touch button for.