Toggle component doesn’t seem to work.
Redesigning this to work with a sliding panel will take some time and there may be issues with that as well. I’ve had issues with page includes in sliding panels in the past so I just avoided using them, but I’ll see if I can experiment with that some more.
Sliding panels have similar issues. I need the page include in its original state when it loads, able to receive url parameters and start off fresh. Trying to re-render / toggle it causes the same problem to happen. I’ve been experimenting with unrendering and re-rendering the include and can’t get that working either. It seems like just randomly trying to use the same page include twice causes this issue of the page include loading a blank page every other render.
I think I figured out the problem. An error was throwing when opening the “sub-popup” / “sub-flyout” — “Uncaught Error: cannot call methods on tabs prior to initialization” – this I think was causing issues with trying to re-render items.
The cause of this error was custom display logic on components within the sub-popup, and setting fields that change the display logic just prior to opening the sub-popup. I think it’s because when you tell the sub-popup to open skuid then treats it as opened for display logic purposes, but if you do this in the same action sequence as setting a field value that affects display logic, the item is not actually rendered yet and throws an error when changing something that affects display logic on that item. That’s my guess at least. Removing the display logic item on the sub-popup prevented this error from throwing.
The error itself once it is thrown causes problems with the page afterwards, and likely also was messing up the re-render of the page include. It seems to cause an issue with taking actions on the page once but then once it tries and fails the second go works. Eg. Had a button that triggered display logic elements, those display logic elements would not update on first click of the button, but on second click they then would.
This is just a “workaround” by not doing the thing that causes the bug, but it’s definitely a bug in v1 squid involving rendering / display logic / setting items that have display logic that haven’t been rendered on the screen yet.
@Mark_L have you tried producing this issue in V2?
Oh…When using toggle component, you have to turn the setting to from toggle to “hide” and then do another action to toggle “show”. Just toggling the component with “toggle” doesn’t cause it to re render.
I used to have issues with sliding panels in previous versions but in the latest versions they fixed the issues. Sliding panels are the bomb I use them everywhere. You do have to create your own close button for each if you open them 100% which I always do for mobile compatibility.
if your users use smart phones to access your apps, sliding panels work way better than pop ups.
hope this helps