Trigger event in toggleModal plugin