Commit b375c5a1 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[MainView] focus an instance when recieving a click (on capture)

parent 42eaa511
<div :class.once="'vispa-mainview ' + classTag">
<div :class.once="'vispa-mainview ' + classTag" @click.capture="focus">
<div v-show="loading" class="vispa-modal vispa-center-center">
<img :src.once="spinner"/>
</div>
......
......@@ -116,6 +116,12 @@ define([
},
},
},
methods: {
focus: function(event) {
if (!this.instance.isFocused())
this.instance.focus();
},
},
});
// shimmed events
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment