Creates prop for setting the collapse state of panels

This commit is contained in:
Alicia Sykes
2019-09-01 17:31:00 +01:00
parent 335c8eec53
commit 45edb85b36
5 changed files with 41 additions and 5 deletions

View File

@@ -41,9 +41,13 @@ export default {
window.addEventListener('keyup', (event) => {
const { key } = event;
if (/^[a-zA-Z]$/.test(key) && !document.activeElement.id) {
this.input += key;
this.$refs.filter.focus();
this.userIsTypingSomething();
try {
this.input += key;
this.$refs.filter.focus();
this.userIsTypingSomething();
} catch (e) {
// Do nothing
}
}
});
},