Skip to content

Commit

Permalink
Merge pull request #18 from retejs/fix/resize-selector
Browse files Browse the repository at this point in the history
fix: resize of correct element
  • Loading branch information
Ni55aN authored Mar 23, 2024
2 parents 2a0b5a3 + dd8cf41 commit ece2fb1
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 ece2fb1

Please sign in to comment.