Skip to content

Commit b973437

Browse files
Merge pull request #61 from lightning-js/feature/announcer-stop-message
Feature/announcer stop message
2 parents 08bbe54 + fa4cb5c commit b973437

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lightningjs/blits-example-app",
3-
"version": "1.13.0",
3+
"version": "1.14.0",
44
"description": "Lightning 3 Blits Example App",
55
"main": "index.js",
66
"type": "module",
@@ -40,6 +40,6 @@
4040
},
4141
"dependencies": {
4242
"@firebolt-js/sdk": "^1.4.1",
43-
"@lightningjs/blits": "^1.26.2"
43+
"@lightningjs/blits": "^1.27.0"
4444
}
4545
}

src/pages/Announcer.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ const Item = Blits.Component('Item', {
3434
this.message = this.$announcer.speak(this.name)
3535
},
3636
unfocus() {
37-
this.message && this.message.cancel()
37+
if (this.message) {
38+
this.message.stop()
39+
this.message.cancel()
40+
}
3841
},
3942
},
4043
})
@@ -63,7 +66,10 @@ const Row = Blits.Component('Row', {
6366
this.$trigger('focusIndex')
6467
},
6568
unfocus() {
66-
this.message.cancel()
69+
if (this.message) {
70+
this.message.stop()
71+
this.message.cancel()
72+
}
6773
},
6874
},
6975
watch: {

0 commit comments

Comments
 (0)