mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Fix for execution retry dropdown not closing (#4575)
* 🐛 Fixing execution retry popup closing behavior * 👌 Updating child component ref type casting * 👌 Handling `undefined` possibility in action dropdown blur event
This commit is contained in:
committed by
GitHub
parent
c1bcc47cb5
commit
e0ec5a6aa9
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div :class="['action-dropdown-container', $style.actionDropdownContainer]">
|
||||
<el-dropdown :placement="placement" :trigger="trigger" @command="onSelect">
|
||||
<div :class="$style.activator" @click.prevent>
|
||||
<el-dropdown :placement="placement" :trigger="trigger" @command="onSelect" ref="elementDropdown">
|
||||
<div :class="$style.activator" @click.prevent @blur="onButtonBlur">
|
||||
<n8n-icon :icon="activatorIcon"/>
|
||||
</div>
|
||||
<el-dropdown-menu slot="dropdown" :class="$style.userActionsMenu">
|
||||
@@ -92,6 +92,13 @@ export default Vue.extend({
|
||||
onSelect(action: string) : void {
|
||||
this.$emit('select', action);
|
||||
},
|
||||
onButtonBlur(event: FocusEvent): void {
|
||||
const elementDropdown = this.$refs.elementDropdown as Vue & { hide: () => void } | undefined;
|
||||
// Hide dropdown when clicking outside of current document
|
||||
if (elementDropdown && event.relatedTarget === null) {
|
||||
elementDropdown.hide();
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user