fix: limit drag handle scope

This commit is contained in:
mathuo 2023-07-17 19:49:37 +01:00
parent e234312e03
commit 37a688c874
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281

View File

@ -351,7 +351,13 @@ export class DockviewComponent
minimumInViewportHeight: 100,
});
overlay.setupDrag(group.element, {
const el = group.element.querySelector('void-container');
if (!el) {
throw new Error('failed to find drag handle');
}
overlay.setupDrag(<HTMLElement>el, {
inDragMode:
typeof options?.inDragMode === 'boolean'
? options.inDragMode