Skip to content

Commit

Permalink
IBX-7517: [Dashboard] Quick actions: selected tags aren't fully displ…
Browse files Browse the repository at this point in the history
…ayed (#1208)
  • Loading branch information
GrabowskiM authored Mar 21, 2024
1 parent 5e57b6e commit 43694d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bundle/Resources/public/js/scripts/core/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@

this.container.classList.toggle('is-invalid', isInvalid);
});
this.resizeObserver = new ResizeObserver(() => {
this.fitItems();
});
this.currentSelectedValue = this.sourceInput.value;

this.createSelectedItem = this.createSelectedItem.bind(this);
Expand Down Expand Up @@ -570,6 +573,7 @@
attributes: true,
attributeFilter: ['class'],
});
this.resizeObserver.observe(this.container);

const selectedItems = this.container.querySelectorAll(
'.ibexa-dropdown__selected-item:not(.ibexa-dropdown__selected-overflow-number):not(.ibexa-dropdown__selected-placeholder)',
Expand Down

0 comments on commit 43694d1

Please sign in to comment.