State applied to children, but does not work

Hi there,

It seems that state apply to children is not working.

I have a div with a text label. On the div I have a state (clicked = true). Apply to children is On. I bind a text color on the div:clicked state on the child text element. I bind a different background color to the div.

The div background color changes on click, but the text color doesn’t. If I bind the same state to the text element it does work.

Hi @FHEXL :wave:

Can you share some screenshots to help us reproduce your use case and hopefully point you in the right direction?

I figured it out. It was due to copy past I was using a deprecated parent state.

1 Like