Skip to content

Commit

Permalink
Upgraded to Blits 0.9.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandergeest committed Mar 21, 2024
1 parent d21d2fd commit 132a889
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lightningjs/blits-example-app",
"version": "0.9.2",
"version": "0.9.3",
"description": "Lightning 3 Blits Example App",
"main": "index.js",
"type": "module",
Expand Down Expand Up @@ -38,6 +38,6 @@
"vite": "^4.0.4"
},
"dependencies": {
"@lightningjs/blits": "^0.9.1"
"@lightningjs/blits": "^0.9.2"
}
}
8 changes: 5 additions & 3 deletions src/components/TmdbRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default Blits.Component('TmdbRow', {
item="$item"
ref="poster"
width="$width"
:key="$item.identifier"
key="$item.identifier"
/>
</Element>
</Element>
Expand All @@ -62,8 +62,10 @@ export default Blits.Component('TmdbRow', {
watch: {
focused(value) {
const focusItem = this.select('poster' + value)
if (focusItem && focusItem.focus) focusItem.focus()
this.$emit('posterSelect', this.items[value])
if (focusItem && focusItem.focus) {
focusItem.focus()
this.$emit('posterSelect', this.items[value])
}
},
},
input: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Tmdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default Blits.Component('TMdb', {
<Element :y.transition="{value: $y, duration: 300, easing: 'cubic-bezier(0.20, 1.00, 0.80, 1.00)'}">
<TmdbRow
:for="(row, index) in $rows"
:key="$row.title"
key="$row.title"
title="$row.title"
:items="$row.items"
:type="$row.type"
Expand Down

0 comments on commit 132a889

Please sign in to comment.