Remove event bubbling in declarator.