Skip to content

Commit

Permalink
IBX-1795: Fix location limitation (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic authored Dec 23, 2021
1 parent a6488f1 commit b2619a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,13 @@
selectedItems.forEach((location) => {
const locationId = location.id;
const container = doc.createElement('ul');
const renderedItem = tagTemplate.replace('{{ location_id }}', locationId);

container.insertAdjacentHTML('beforeend', tagTemplate);

const tagTemplateUnescaped = container.innerHTML;
const renderedItem = tagTemplateUnescaped.replace('{{ location_id }}', locationId);

container.innerHTML = '';
container.insertAdjacentHTML('beforeend', renderedItem);

const listItemNode = container.querySelector('li');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<li class="mt-2">
{{ include('@ibexadesign/ui/tag.html.twig', {
'content': content_breadcrumbs,
'location_id': location_id,
'is_loading_state': is_loading_state,
'tag_attributes': {
'data-location-id': location_id,
Expand Down

0 comments on commit b2619a5

Please sign in to comment.