File tree 1 file changed +15
-1
lines changed
packages/editor-ui/src/components
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 53
53
:class =" {
54
54
[$style.header]: true,
55
55
[$style.draggableHeader]: mappingEnabled,
56
- [$style.activeHeader]: i === activeColumn && mappingEnabled,
56
+ [$style.activeHeader]: ( i === activeColumn || forceShowGrip) && mappingEnabled,
57
57
[$style.draggingHeader]: isDragging,
58
58
}"
59
59
>
@@ -202,6 +202,7 @@ export default mixins(externalHooks).extend({
202
202
data() {
203
203
return {
204
204
activeColumn: - 1 ,
205
+ forceShowGrip: false ,
205
206
draggedColumn: false ,
206
207
draggingPath: null as null | string ,
207
208
hoveringPath: null as null | string ,
@@ -234,6 +235,9 @@ export default mixins(externalHooks).extend({
234
235
tableData(): ITableData {
235
236
return this .convertToTable (this .inputData );
236
237
},
238
+ focusedMappableInput(): string {
239
+ return this .ndvStore .focusedMappableInput ;
240
+ },
237
241
},
238
242
methods: {
239
243
shorten ,
@@ -494,6 +498,16 @@ export default mixins(externalHooks).extend({
494
498
this .$emit (' displayModeChange' , ' json' );
495
499
},
496
500
},
501
+ watch: {
502
+ focusedMappableInput(curr : boolean ) {
503
+ setTimeout (
504
+ () => {
505
+ this .forceShowGrip = !! this .focusedMappableInput ;
506
+ },
507
+ curr ? 300 : 150 ,
508
+ );
509
+ },
510
+ },
497
511
});
498
512
</script >
499
513
You can’t perform that action at this time.
0 commit comments