From dae323934417c2aed05f71fd4ba123e529787421 Mon Sep 17 00:00:00 2001 From: Vitaliy Stoliarov Date: Tue, 20 Aug 2024 17:27:44 +0300 Subject: [PATCH] fix: skip elements with 'fragment' attribute when resize --- src/node-view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node-view.ts b/src/node-view.ts index 53fcbfd..fc91e21 100644 --- a/src/node-view.ts +++ b/src/node-view.ts @@ -64,7 +64,7 @@ export class NodeView { if (!(await this.guards.resize({ size }))) return false - const el = this.element.querySelector('*:not(span)') + const el = this.element.querySelector('*:not(span):not([fragment])') if (!el || !(el instanceof HTMLElement)) return false