Stop propagation of ACL add button in ACL picker (fixes flex-objects#83)

This commit is contained in:
Djamil Legato
2020-11-12 10:32:37 -08:00
parent bc8b714bbd
commit 01dfc8415e
3 changed files with 4 additions and 1 deletions

View File

@@ -7,6 +7,7 @@
* Forward a `sid` to GPM when downloading a premium package
1. [](#bugfix)
* Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955)
* Stop propagation of ACL add button in ACL picker [flex-objects#83](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/83)
* Fixed missing special groups `authors` and `defaults` for pages
# v1.10.0-rc.17

View File

@@ -45,6 +45,7 @@ body.on('input', 'input[data-crudp-key]', (event) => {
});
body.on('click', '[data-acl_picker] .remove-item', (event) => {
event.preventDefault();
const target = $(event.currentTarget);
const container = target.closest('.permissions-item');
const wrapper = target.closest('[data-acl_picker_id]');
@@ -59,6 +60,7 @@ body.on('click', '[data-acl_picker] .remove-item', (event) => {
});
body.on('click', '[data-acl_picker] .add-item', (event) => {
event.preventDefault();
const target = $(event.currentTarget);
const item = target.closest('.permissions-item');
const wrapper = target.closest('[data-acl_picker_id]');

File diff suppressed because one or more lines are too long