Don't fire show event if show is prevented because other element is still transitioning

Fixes #14844.
Closes #14845.