Skip to content

Commit 7c7056e

Browse files
committed
update maverick to 0.22.2
1 parent a39d267 commit 7c7056e

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

frameworks/keyed/maverick/package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frameworks/keyed/maverick/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
"author": "Rahim Alwer",
1515
"license": "MIT",
1616
"dependencies": {
17-
"maverick.js": "0.22.0"
17+
"maverick.js": "0.22.2"
1818
},
1919
"devDependencies": {
20-
"@maverick-js/compiler": "0.22.0",
20+
"@maverick-js/compiler": "0.22.2",
2121
"esbuild": "0.16.8",
2222
"sirv-cli": "2.0.2",
2323
"typescript": "4.9.4"

frameworks/keyed/maverick/src/main.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,15 @@ function App() {
118118
<tbody>
119119
<ForKeyed each={$data}>
120120
{(row) => {
121+
const id = row.id;
121122
return (
122-
<tr class={$selector(row.id) ? "danger" : ""}>
123-
<td class="col-md-1" $prop:textContent={row.id} />
123+
<tr class={$selector(id)() ? "danger" : ""}>
124+
<td class="col-md-1" $prop:textContent={id} />
124125
<td class="col-md-4">
125-
<a $on:click={[select, row.id]} $prop:textContent={row.label()} />
126+
<a $on:click={[select, id]} $prop:textContent={row.label()} />
126127
</td>
127128
<td class="col-md-1">
128-
<a $on:click={[remove, row.id]}>
129+
<a $on:click={[remove, id]}>
129130
<span class="glyphicon glyphicon-remove" aria-hidden="true" />
130131
</a>
131132
</td>

0 commit comments

Comments
 (0)