Skip to content

Commit

Permalink
#618: ensure focus available on preview pane.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed Jun 3, 2018
1 parent 69e19fd commit d299857
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/renderer/partials/ProvenanceProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ export default {
},
focusErrors: function() {
document.querySelector('#provenance-errors-container').focus()
let element = document.querySelector('#provenance-errors-container')
if (!element) {
element = document.querySelector('#provenance-preview')
}
if (element) {
element.focus()
}
}
},
watch: {
Expand Down

0 comments on commit d299857

Please sign in to comment.