mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Support tabbing away from inline expression editor (#5056)
⚡ Support tabbing away from inline expression editor
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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="[$style['all-sections'], { [$style['focused']]: isFocused }]">
|
||||||
<div
|
<div
|
||||||
:class="[
|
:class="[
|
||||||
@@ -128,7 +128,7 @@ export default Vue.extend({
|
|||||||
|
|
||||||
this.$emit('focus');
|
this.$emit('focus');
|
||||||
},
|
},
|
||||||
onBlur(event: FocusEvent) {
|
onBlur(event: FocusEvent | KeyboardEvent) {
|
||||||
if (
|
if (
|
||||||
event.target instanceof Element &&
|
event.target instanceof Element &&
|
||||||
Array.from(event.target.classList).some((_class) => _class.includes('resizer'))
|
Array.from(event.target.classList).some((_class) => _class.includes('resizer'))
|
||||||
|
|||||||
Reference in New Issue
Block a user