Currently, the Component Toggle Property doesn’t respect the initial state of the toggle that you connect it to. It would be a big improvement in flexibility if the Component Toggle respects the initial state you connect it to.
Example Scenario:
- I have 2 heading elements. One styled as an accent heading and another a normal heading.
- I create a Toggle Property labeled “Has Accent Heading” with the default state as True
- I toggle the Hide Element for both the Builder and Frontend of the normal heading element
- I connect the Toggle Property to the Hide Element toggles of both the accent heading and the normal heading
Expected Behavior:
- Show the accent heading in the Builder and Frontend and hide the normal heading in both as the default behavior.
- Hide the accent heading in the Builder and Frontend and show the normal heading in both when I toggle the Has Accent Heading to False.
Current Behavior:
- Once I connect the Toggle Property to the Hide Element toggles of the normal heading element it doesn’t respect the initial state I set for the toggles. It overrides it with the default state of the Toggle Property, in this case True, thereby showing the normal heading along with the accent heading.
I hoped I explained it clearly.