Consider consolidating GlModal events
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
BModal's ok/cancel events are nearly identical to GlModal's primary/canceled events. The main difference is that the former are cancellable, whereas the latter aren't. (They also have an event payload that enables this, as well as other things.)
There's also our secondary event, which as no equivalent in BootstrapVue's implementation.
Anyway, the reason ok and cancel event bindings work is because we forward all listeners to the underlying BModal.
We should consider consolidating these one way or another, as the duplication of functionality is a bit confusing.
See !87415 (comment 953346023) for the origin of this.
Edited by 🤖 GitLab Bot 🤖