Akryum / Akryum/floating-vue

TypeError addResizeHandlers

未關閉
#911 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
3.5k
分支
341
平均合併
14 分鐘
30 天內合併 PR
8

描述

First of all, thanks for your work on this library.

In a production app, we have an error which keeps coming back a few times a month.

Error type is always as in the issue title `TypeError addResizeHandlers`.

Message is always the following: `null is not an object (evaluating 'this._resizeObject.contentDocument.defaultView')` and it seems to be appearing only on Safari desktop and mobile, versions 14.1 through 16. The stacktrace leads us to our vendor javascript file, and more specifically to our installation of floating-vue. The last action that Sentry records for us in relation to the error, is always a click on some element, which is totally unrelated to our implementations of the library.

One suspicion I have, is that we're force displaying an element with this library somewhere else in the application, and that the element is no longer available when floating-vue is still executing. Maybe just a null-check is missing somewhere?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。