Focus on wrong tab while saving

Hello, recently I have created a new form for my company and the focus always returns 
to the main tab of this form even if I save in another tab and I would like that
the focus stays in the tab when I save Has anyone ever had this problem and if so how did you solve it thanks :)