"Toggle Preview" button isn't a toggle

Created on 4 April 2023, about 2 years ago
Updated 6 April 2023, about 2 years ago

Problem/Motivation

Labelling the button "Toggle Preview" implies that clicking it a second time will dismiss the preview pane. In my testing, it did not.

Steps to reproduce

Install this module on a fresh install of Drupal. Go to create an article. Click the "Toggle Preview" button. Click it a second time and see that the pane refreshes instead of going away.

Proposed resolution

Update the samePagePreviewTriggerPreview Javascript function to check if the preview pane is open, and if so, click the close preview button instead.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇨🇦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024