Skip to content

Commit

Permalink
[MWPW-165791] optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
DKos95 committed Jan 24, 2025
1 parent 79e9809 commit 3d358d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/blocks/table/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ function handleAddOnContent(table) {

async function setAriaLabelForIcons(el) {
const config = getConfig();

const expendableIcons = el.querySelectorAll('.icon.expand[role="button"]');
const selectFilters = document.querySelectorAll('.filters .filter');
const selectFilters = el.parentElement.querySelectorAll('.filters .filter');
const ariaLabelElements = [...selectFilters, ...expendableIcons];

if (!ariaLabelElements.length) {
Expand Down

0 comments on commit 3d358d3

Please sign in to comment.