Skip to content

Commit c52227d

Browse files
dominiczaqyyx990803
authored andcommitted
Change attached and detached lifecycle hooks in mixin (vuejs#185)
Change for mounted and destroyed respectively to fix not working arrow keys navigation
1 parent cda99f2 commit c52227d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/devtools/mixins/key-nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ document.addEventListener('keyup', e => {
1818
})
1919

2020
export default {
21-
attached () {
21+
mounted () {
2222
activeInstances.push(this)
2323
},
24-
detached () {
24+
destroyed () {
2525
const i = activeInstances.indexOf(this)
2626
if (i >= 0) {
2727
activeInstances.splice(i, 1)

0 commit comments

Comments
 (0)