wp-calypso
wp-calypso copied to clipboard
Sites Management Page: Grid/Table toggle button updates on its own if you toggle it too quickly
The layout toggle on the sites management page gets all confused if you switch it too quickly. It probably has something to do with clicking the toggle while the network request to persist the setting is still in transit.
https://user-images.githubusercontent.com/1500769/183571705-602881aa-8794-4151-a04c-1f4b76b97e95.mov
Steps
-
/sites-dashboard
- Quickly toggle to the other mode, and then back to the original mode
- After a few milliseconds the toggle will change on its own
The layout toggle on the sites management page gets all confused if you switch it too quickly.
@p-jackson It's a feature, not a bug? 😄
I think the solution for this would be to disable switching until saving was completed.