Skip to content

Commit 4092203

Browse files
committed
check for existence of focus method
1 parent c8f7752 commit 4092203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/editor/result-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default class ResultView {
115115
}
116116

117117
focusPrevious () {
118-
if (this.previousFocus) {
118+
if (this.previousFocus && this.previousFocus.focus) {
119119
this.previousFocus.focus()
120120
}
121121
}

0 commit comments

Comments
 (0)