Grav-plugin-admin: Add Page dialogue closes unexpectedly when trying to change Page Template

Created on 3 Mar 2021  ·  3Comments  ·  Source: getgrav/grav-plugin-admin

Problem:
When creating a new page in Grav Admin and trying to select a custom page template, the Add Page dialogue closes unexpectedly. It is therefore not possible to create a new page with a custom page template via the Add Page dialogue. In fact it is possible, but only when opening the Add Page dialogue for a second time.

System configuration:

  • Apache 2.4.46
  • PHP 8.0.1
  • Grav v1.7.7
  • Admin Panel v1.10.6
  • Custom page template in custom theme
  • Firefox 86.0 (64-bit)

Steps:

  1. Go to project.tld/admin and authenticate
  2. Go to Pages
  3. Click on Add Page
  4. In the dialogue set a Page Title
  5. In the dialogue try to select your custom template

Observations:

  • First, this only happens in Firefox for me. Chrome or Safari do not show the same behavior.
  • The Add Page dialogue only closes when the item you are trying to select in the Page Template select is outside of the actual Add Page dialogue (meaning, the Page Template select itself reaches out of the Add Page dialogue).

Most helpful comment

Since I grew tired of fixing this issue every mont, from now on it won't be possible to click on the overlay and accidentally trigger the close action of the modal. This includes selecting an item outside of the modal boundaries from the dropdown which was the main problem.
There is now a Cancel button that can be clicked for closing the modal or the Escape key which is stil available as an option.

w00fz-2021-03-18_<strong>@_16</strong> 09 43@2x

All 3 comments

this has been also reported with https://github.com/getgrav/grav-plugin-admin/issues/2065 , although was fixed in https://github.com/getgrav/grav-plugin-admin/issues/1682 .

not sure how this is an issue again, needs investigating.

I can confirm the issue.

Since I grew tired of fixing this issue every mont, from now on it won't be possible to click on the overlay and accidentally trigger the close action of the modal. This includes selecting an item outside of the modal boundaries from the dropdown which was the main problem.
There is now a Cancel button that can be clicked for closing the modal or the Escape key which is stil available as an option.

w00fz-2021-03-18_<strong>@_16</strong> 09 43@2x

Was this page helpful?
0 / 5 - 0 ratings

Related issues

illycz picture illycz  ·  5Comments

CoDanny picture CoDanny  ·  3Comments

ghost picture ghost  ·  6Comments

maciejmatu picture maciejmatu  ·  3Comments

artofthesmart picture artofthesmart  ·  4Comments