Bug with Toggle Component


Not sure if intended this way, but created 3 button that toggle different tab sets components

All with Behavior Toggle

The first button all was well, the component not showing on page until button is clicked

the other 2 , the components are not hidden by default, and they show on the page when loaded, and when we click on button they hide..

Is that expected Behavior?

Is there a way to indicate that they should be hidden by default until toggled ?


Best Answer

  • Anna WiersemaAnna Wiersema 🛠️ 
    edited September 18, 2020 Accepted Answer

    Hi Dave, this does sound like expected behavior. All components are shown by default unless they have display logic hiding them on page load.

    • According to the Skuid documentation on Toggle: The button hides or shows the component, depending on whether the component is already showing on the page."

    One way we typically accomplish this is to have a ui-only model that determines the rendering of certain components. (e.g. if a checkbox is false, the component won't render).

    With the first button, this sounds like unexpected behavior - the component should be displayed on page load unless the model has no data or it has rendering conditions hiding it.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!