Hi
I have a Foldout
that has a Toggle
child down its ContentContainer hierarchy.
Now when I register a ChangeEvent callback to foldout it is raised not only when I click on a foldout but also when I click on the previously mentioned toggle.
It is a bug? I filed a bug report but got no response.
var root = rootVisualElement;
var foldout = new Foldout();
foldout.RegisterValueChangedCallback(e=>Debug.Log("Change"));
var toggle = new Toggle();
foldout.Add(toggle);
root.Add(foldout);