Skip to content

Commit

Permalink
fix: resize of correct element
Browse files Browse the repository at this point in the history
  • Loading branch information
Ni55aN committed Mar 23, 2024
1 parent 2a0b5a3 commit dd8cf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class NodeView {

if (!(await this.guards.resize({ size }))) return false

const el = this.element.children.item(0)
const el = this.element.querySelector('*:not(span)')

if (!el || !(el instanceof HTMLElement)) return false

Expand Down

0 comments on commit dd8cf41

Please sign in to comment.