[5.x]: Active tab in multi-tab fields resets after saving entry in CP
What happened?
Description
When editing an entry that contains a field with multiple tabs, switching to a different tab and saving the entry causes the editor to reset to the default tab.
This disrupts the workflow, as users must manually scroll down and re-select the tab they were working in after each save. Ideally, the editor should remember and restore the active tab position after saving, allowing users to continue editing seamlessly without interruption.
Steps to reproduce
- Add multiple tabs to a field
- Add this field to an entry on your page or post
- Open the page or post editor in the CP
- Switch to a different tab in your field
- Save and continue (cmd+s -> Mac)
Expected behavior: keep the current tab(s) open, and remember their position.
Actual behavior
Right now when you go to a tab within your page and hit save, you have to scroll down and switch to that tab again to make changes. (see the GIF video above)
Craft CMS version
5.7.10
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response