Do not fire change events when ToggleButton/CheckBox/etc. do not actually change

Fixes #18232.