Why is the search icon visible when the rest is hidden

Helllo, 


I do a check when the search box must be visible. 

The box is hidden but the icon is still visible.

Anyone a clue why ? 


so fill in for example    fight club and press  on the button.

the box and buton will disappear but the icon is still visible. 


Roelof


and here a screen shot : 


Hi Roelof,

I would say that this is because the search widget is outside the IF-widget:


Regards,
Lennart

Solution

Hi Roelof,


As you can see in the image below the visibility check is placed inside the Input placeholder of the Search widget. 

The icon itself is situated within the Search widget so your visibility check should be wrapped around the entire search widget rather than inside the Input placeholder as you can see on the second image.



Solution

Wierd, I did set the visibility check on the container and not on the elelements. 

Or do I need then place a container inside a container.

Roelof Wobben wrote:

Wierd, I did set the visibility check on the container and not on the elelements. 

Or do I need then place a container inside a container.

If your widget tree looks like the second image it should work as intended.