Fix of issue #12067 

The deleted line force second onShow event. Fix of issue #12067