Skip to content

Commit

Permalink
fix: use repeat instead of map directive to fiy dynamic rendering of …
Browse files Browse the repository at this point in the history
…radios
  • Loading branch information
silvester-pari committed Aug 23, 2023
1 parent 3985483 commit ba1d1bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elements/itemfilter/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { html, nothing } from "lit";
import { customElement, property, state } from "lit/decorators.js";
import { when } from "lit/directives/when.js";
import { map } from "lit/directives/map.js";
import { repeat } from "lit/directives/repeat.js";
import { unsafeHTML } from "lit/directives/unsafe-html.js";
import { html as staticHTML, unsafeStatic } from "lit/static-html.js";
import "toolcool-range-slider";
Expand Down Expand Up @@ -397,11 +398,12 @@ export class EOxItemFilter extends TemplateElement {
</span>
</summary>
<ul>
${map(
${repeat(
this.aggregateResults(
this.results,
aggregationProperty
),
(item: Item) => item.id,
(item: Item) => html`
<li
class=${this.selectedResult?.[
Expand Down

0 comments on commit ba1d1bd

Please sign in to comment.