Skip to content

Commit 4d9092a

Browse files
authored
Fix context closing error when panning (baserow#4801)
1 parent c532ff1 commit 4d9092a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

web-frontend/modules/automation/components/workflow/WorkflowNodeContent.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,10 @@ onMove(() => {
166166
167167
const editNodeContext = ref(null)
168168
const editNodeContextToggle = ref(null)
169+
169170
const openEditContext = () => {
170171
if (editNodeContext.value && editNodeContextToggle.value) {
171-
activeNodeContext.value = editNodeContext
172+
activeNodeContext.value = editNodeContext.value
172173
editNodeContext.value.toggle(
173174
editNodeContextToggle.value,
174175
'bottom',
@@ -179,12 +180,13 @@ const openEditContext = () => {
179180
}
180181
181182
const replaceNodeContext = ref(null)
183+
182184
const openReplaceContext = async () => {
183185
editNodeContext.value.hide()
184186
// As the target isn't the element that triggered the show of the context it is not
185187
// ignored by the click outside handler and it immediately closes the context
186188
await flushPromises()
187-
activeNodeContext.value = replaceNodeContext
189+
activeNodeContext.value = replaceNodeContext.value
188190
replaceNodeContext.value.toggle(
189191
editNodeContextToggle.value,
190192
'bottom',

0 commit comments

Comments
 (0)