Skip to content

Commit b9b7d57

Browse files
Copilotrenemadsen
andcommitted
Fix cdkDragHandle directive application for non-nested fields
Co-authored-by: renemadsen <[email protected]>
1 parent b199d79 commit b9b7d57

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

eform-client/src/app/modules/eforms/eform-visual-editor/components/eform-visual-editor-elements/field/visual-editor-field/visual-editor-field.component.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,19 @@
1111
>
1212
<div style="display: flex; flex-grow: 6; align-items: center;">
1313
<mat-icon
14-
[cdkDragHandle]="fieldIsNested"
14+
*ngIf="!fieldIsNested"
1515
class="dragula-handle align-middle"
1616
style="cursor: pointer"
17-
[id]="fieldIsNested ? 'moveNestedFieldBtn' : 'moveFieldBtn'"
17+
id="moveFieldBtn"
18+
>
19+
menu
20+
</mat-icon>
21+
<mat-icon
22+
*ngIf="fieldIsNested"
23+
cdkDragHandle
24+
class="dragula-handle align-middle"
25+
style="cursor: pointer"
26+
id="moveNestedFieldBtn"
1827
>
1928
menu
2029
</mat-icon>

0 commit comments

Comments
 (0)