Skip to content

Commit

Permalink
fix(QResizeObserver): trigger() method not attached correctly when us…
Browse files Browse the repository at this point in the history
…ing a native Observer #16697
  • Loading branch information
rstoenescu committed Dec 15, 2023
1 parent 5c9a579 commit 6e92b07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/components/resize-observer/QResizeObserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ export default createComponent({

const { proxy } = getCurrentInstance()

// expose public method
proxy.trigger = trigger

if (hasObserver === true) {
let observer

Expand Down Expand Up @@ -130,9 +133,6 @@ export default createComponent({

onBeforeUnmount(cleanup)

// expose public method
proxy.trigger = trigger

return () => {
if (canRender.value === true) {
return h('object', {
Expand Down

0 comments on commit 6e92b07

Please sign in to comment.