I found out that this issue is related to focusing the wrong tab after opening dialogs or any popup such as javascript’s confirm.