Skip to content

Commit

Permalink
fix(editor): Support tabbing away from inline expression editor (#5056)
Browse files Browse the repository at this point in the history
⚡ Support tabbing away from inline expression editor
  • Loading branch information
ivov authored Dec 29, 2022
1 parent 2e28f13 commit a2ab78f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="$style['expression-parameter-input']" v-click-outside="onBlur">
<div :class="$style['expression-parameter-input']" v-click-outside="onBlur" @keydown.tab="onBlur">
<div :class="[$style['all-sections'], { [$style['focused']]: isFocused }]">
<div
:class="[
Expand Down Expand Up @@ -128,7 +128,7 @@ export default Vue.extend({
this.$emit('focus');
},
onBlur(event: FocusEvent) {
onBlur(event: FocusEvent | KeyboardEvent) {
if (
event.target instanceof Element &&
Array.from(event.target.classList).some((_class) => _class.includes('resizer'))
Expand Down

0 comments on commit a2ab78f

Please sign in to comment.