Added event target to the toggle event

Related #3450