Closed (duplicate)
Project:
Drupal core
Version:
11.x-dev
Component:
workspaces.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Jun 2020 at 09:51 UTC
Updated:
18 Apr 2024 at 15:46 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
pameeela commentedCan confirm this still occurs in 9.2.x.
Comment #4
ikit-claw commentedLooks like it might be browser specific need the browser and window width.
Comment #5
shriaasI can confirm on firefox 88.0 and chrome 90.0 environment: Ubuntu 20.
I can see that toolbar is re-appearing at the top after the popup is closed(irrespective of the button clicked) I guess there is definitely some JS involved but I can't find how/where to change it so that either:
1. The workspace dialog is closed or
2. Toolbar remains as it is.
Comment #6
ikit-claw commentedThanks shriaas2898 I can confirm I can replicated this on 9.1.8 also even with the menu being used horizontal.
It looks like some JS is used for the off screen menu that needs tweaking for if you select "cancel"
When you select confirm it has these classes :
button button--primary js-form-submit form-submit ui-button ui-corner-all ui-widget
But when you press cancel it has these :
button dialog-cancel ui-button ui-corner-all ui-widget
Comment #7
shriaasYes @ikit-claw I also think some JS or AJAX call is used here but there are no JS libraries in the module itself 😅 I think it is extended from the core but I am yet to figure out the exact location.
Comment #8
shriaasUpdate:

Apparently, this bug does not occur when we try to switch workspace to live (eg. stage -> live), I created two more workspaces to confirm the behavior see below:
The confirm box is created using
Drupal\workspaces\Form\SwitchToLiveFormwhich is extending ConfirmFormBase clase to create that popup box.So probably some change will be required in
Drupal\workspaces\Form\SwitchToLiveForm::getCancelUrl()orDrupal\workspaces\Form\WorkspaceActivateForm::getCancelUrl()method.Comment #9
shriaasAdded remaining tasks to IS
Comment #14
amateescu commentedThis is a duplicate of #2985324: The position of the toolbar moves above the off-canvas top dialog if a modal dialog is opened.