Skip to content

Commit

Permalink
bug #4527 Target wrapper element if icon clicked on batch action butt…
Browse files Browse the repository at this point in the history
…on (simonrse)

This PR was merged into the 3.0.x-dev branch.

Discussion
----------

Target wrapper element if icon clicked on batch action button

Support for click on button icon - related to issue #4481

Commits
-------

e03d6cd Recompiled assets
  • Loading branch information
javiereguiluz committed Aug 3, 2021
2 parents 149313f + e03d6cd commit b827b8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ const App = (() => {
dataActionBatch.addEventListener('click', (event) => {
event.preventDefault();

const actionElement = event.target;
const actionElement = event.target.tagName.toUpperCase() === 'A' ? event.target : event.target.parentNode;
const actionName = actionElement.textContent.trim() || actionElement.getAttribute('title');
const selectedItems = document.querySelectorAll('input[type="checkbox"].form-batch-checkbox:checked');
modalTitle.textContent = titleContentWithPlaceholders
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/app.js

Large diffs are not rendered by default.

0 comments on commit b827b8c

Please sign in to comment.