[5.x]: Partial reset of tab view while filling content
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
While filling an entry which has tabs sometimes the autosave kicks in and the view will be partially reset. The tab you were filling with content will be displayed under the first tab. The first tab is also selected, the tab bar itself isn't replicated.
Steps to reproduce
- Add an entry with tabs to another entry which also has multiple tabs. (the entry added need to have more than a few, the smallest case we have seen this happen is with 12 tabs, the entry above it doen't require as much, we have seen it with 3)
- make sure the entry with a lot of tabs also has field te be filled, one or two per tab should do.
- have some text prepared to rapidly fill in all the fields.
- when the autosave is triggered while filling the bug COULD be triggered. This is not a sure deal but happens a lot to us and our client.
Expected behavior
The normal layout works as it would if you were not editing content.
Actual behavior
The content of the tab you were working in shifts as if it's the bottom content of the first tab which is selected. (the view is reset to the first tab but your "current" tab is displayed below that one)
Additional notes
- This now has a tag for Craft 5 and it is since 5.2 that we noticed. But we have also changed our author experience only since then. It could be this problem already existed since Craft 4.
- Our database is also quite large which may cause the autosave process to take longer. if no large database is on-hand maybe this could be replicated by limiting database server resources temporarily.
Craft CMS version
Craft Pro 5.4.10.1
PHP version
8.2.27
Operating system and version
Linux 5.4.0-187-generic
Database type and version
MySQL 8.0.33
Image driver and version
No response
Installed plugins and versions
- Amazon S3 | 2.2.1
- Blitz | 5.9.3
- Cookies | 5.0.0
- Element API | 4.1.0
- Embedded Assets | 5.3.0
- Feed Me | 6.5.0
- Field Manager | 4.0.3
- Freeform | 5.7.0.1
- Google Maps | 5.0.3
- Inline SVG | 2.1.0
- Linkit | 5.0.0
- Redactor | 4.2.0
- Remote Backup | 5.0.0
- Retour | 5.0.3
- Sentry Logger | 5.0.1
- SEO | 5.0.0
- Super Table | 4.0.2
- Translate | 1.0.0
- UI Element fields | 3.0.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are identified in the report. Start by reproducing the issue with nested entries, many tabs, rapid editing, and an autosave in Craft CMS 5.4.10.1; compare the tab state before and after saving. Done means autosave preserves the active tab and normal layout without moving its content under the first tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, php
- Domain
- full-stack
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100