CloudCatch / light-modal-block

Lightweight, customizable modal block for the WordPress block editor
GNU General Public License v2.0
4 stars 2 forks source link

Pattern Editor Renders Empty When Editing with Light Modal Block #1

Open TremiDkhar opened 1 month ago

TremiDkhar commented 1 month ago

Description

The pattern editor page renders empty when attempting to edit an existing pattern containing the Light Modal Block. The page only appears after the user clicks on the block in the Block List View. See the video below for details.

https://github.com/user-attachments/assets/f20ee07c-3cfa-4af0-9ebf-5996f732a42e

Environment

WP: 6.6.1 Current Theme: Twenty Twenty-Four v1.2 Plugin Version: 1.3.0

dkjensen commented 1 month ago

@TremiDkhar By default the modal block does not appear when editing a page / pattern, it has to be explicitly selected through the plugin sidebar or the block navigator panel. I have just released an update however that detects if the user is editing a pattern, and if so will open the modal by default.