Skip to content

Commit b35172e

Browse files
authored
fix: Add back mapping hint when parameter is focused (#4634)
1 parent 376a0d0 commit b35172e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

packages/editor-ui/src/components/RunDataTable.vue

+15-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
:class="{
5454
[$style.header]: true,
5555
[$style.draggableHeader]: mappingEnabled,
56-
[$style.activeHeader]: i === activeColumn && mappingEnabled,
56+
[$style.activeHeader]: (i === activeColumn || forceShowGrip) && mappingEnabled,
5757
[$style.draggingHeader]: isDragging,
5858
}"
5959
>
@@ -202,6 +202,7 @@ export default mixins(externalHooks).extend({
202202
data() {
203203
return {
204204
activeColumn: -1,
205+
forceShowGrip: false,
205206
draggedColumn: false,
206207
draggingPath: null as null | string,
207208
hoveringPath: null as null | string,
@@ -234,6 +235,9 @@ export default mixins(externalHooks).extend({
234235
tableData(): ITableData {
235236
return this.convertToTable(this.inputData);
236237
},
238+
focusedMappableInput(): string {
239+
return this.ndvStore.focusedMappableInput;
240+
},
237241
},
238242
methods: {
239243
shorten,
@@ -494,6 +498,16 @@ export default mixins(externalHooks).extend({
494498
this.$emit('displayModeChange', 'json');
495499
},
496500
},
501+
watch: {
502+
focusedMappableInput(curr: boolean) {
503+
setTimeout(
504+
() => {
505+
this.forceShowGrip = !!this.focusedMappableInput;
506+
},
507+
curr ? 300 : 150,
508+
);
509+
},
510+
},
497511
});
498512
</script>
499513

0 commit comments

Comments
 (0)