You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected error with message Cannot read properties of null (reading 'getBoundingClientRect') #5352
Thanks for the report. This crash happens when you drag an image resize handle and let go of the mouse button outside the MarkText window. The click that followed hid the handles, but the drag's mouse-move listener stayed attached, so every later mouse move over the window threw Cannot read properties of null (reading 'getBoundingClientRect') in _mouseMove.
We reproduced it on v0.20.0-rc.1, which has the same resize-bar code as beta.5: click an image, drag the right handle past the window edge, release outside the window, then move the mouse back. It was fixed by #5288, which ends the drag whenever the handles are hidden. The fix shipped in v0.20.0-rc.2. On rc.2, rc.3 and develop the same steps (and variants such as deleting the image, switching tabs or toggling source mode mid-drag) produce no errors, and resizing still works.
While checking this we found a different way into the same handler that still fails on rc.3: drag-selecting over document content that uses the class name bar (inline HTML, an HTML block, or a mermaid classDef bar). That one is fixed in #5382.
Closing as a duplicate of #4976. Please update to the latest pre-release, and open a new issue with steps if you still see this error there.
Activity
Jocs commentedon Sep 15, 2026
Thanks for the report. This crash happens when you drag an image resize handle and let go of the mouse button outside the MarkText window. The click that followed hid the handles, but the drag's mouse-move listener stayed attached, so every later mouse move over the window threw
Cannot read properties of null (reading 'getBoundingClientRect')in_mouseMove.We reproduced it on v0.20.0-rc.1, which has the same resize-bar code as beta.5: click an image, drag the right handle past the window edge, release outside the window, then move the mouse back. It was fixed by #5288, which ends the drag whenever the handles are hidden. The fix shipped in v0.20.0-rc.2. On rc.2, rc.3 and
developthe same steps (and variants such as deleting the image, switching tabs or toggling source mode mid-drag) produce no errors, and resizing still works.While checking this we found a different way into the same handler that still fails on rc.3: drag-selecting over document content that uses the class name
bar(inline HTML, an HTML block, or a mermaidclassDef bar). That one is fixed in #5382.Closing as a duplicate of #4976. Please update to the latest pre-release, and open a new issue with steps if you still see this error there.
fix(muya): start an image resize only from the resize bar's own handl…