From 813ee74df65cc6717d4ca69eafd49231be77efe3 Mon Sep 17 00:00:00 2001 From: Will Eastcott Date: Wed, 23 Oct 2024 15:21:58 +0100 Subject: [PATCH] Ensure TreeView drag handle is initially hidden --- src/components/TreeView/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/TreeView/index.ts b/src/components/TreeView/index.ts index 059ca321..121743f7 100644 --- a/src/components/TreeView/index.ts +++ b/src/components/TreeView/index.ts @@ -194,7 +194,8 @@ class TreeView extends Container { this._allowReordering = args.allowReordering ?? true; this._allowRenaming = args.allowRenaming ?? false; this._dragHandle = new Element({ - class: CLASS_DRAGGED_HANDLE + class: CLASS_DRAGGED_HANDLE, + hidden: true }); this._dragScrollElement = args.dragScrollElement || this; this.append(this._dragHandle);