Don't fire show event if show is prevented because other element is tran...

...sitioning

Fixes #14844.