Skip to content

Commit

Permalink
IBX-6517: Search form for activity log
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasOsti authored Oct 23, 2023
1 parent b5704e2 commit 0f95168
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bundle/Resources/public/js/scripts/core/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,16 @@
}

if (value) {
this.sourceInput.querySelector(`[value="${value}"]`).selected = selected;
this.sourceInput.querySelector(`[value="${CSS.escape(value)}"]`).selected = selected;

if (!this.canSelectOnlyOne) {
element.querySelector('.ibexa-input').checked = selected;
}
}

this.itemsListContainer.querySelector(`[data-value="${value}"]`).classList.toggle('ibexa-dropdown__item--selected', selected);
this.itemsListContainer
.querySelector(`[data-value="${CSS.escape(value)}"]`)
.classList.toggle('ibexa-dropdown__item--selected', selected);

const selectedItemsList = this.container.querySelector('.ibexa-dropdown__selection-info');

Expand Down

0 comments on commit 0f95168

Please sign in to comment.