Event was emitted with parent id instead of the id provided by the user, which could be an id on one of the modals children. fixes #4693