Prevent event bubbling after edit