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
Later of course the fragment is attached to the DOM (in the same code-flow).
Stacktrace
ace.min.js:1 Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
at Object.o.scrollbarWidth (ace.min.js:1:6019)
at new l (ace.min.js:1:270981)
at new e (ace.min.js:1:293008)
at Object.o.edit (ace.min.js:1:362270)
at StrategiesManager.registerStrategy (strategies.js:250:24)
at registerStrategy (index.js:68:56)
at static-naive.js:2:1
and here I'll stop, because it looks like only uses for this VirtualRenderer classes are related to testing: [removed image] because I was lazy and found workaround anyway.
Workaround:
Currently, I use setTimeout or requestAnimationFrame to delay attaching the editor to the element, but it looks bad.
The text was updated successfully, but these errors were encountered:
Situation
My guess is, it may have something to do with fact I am creating it node tree cloned from template, before being appended to actual DOM.
Steps to reproduce, vaguely:
<template>
with child node you want to attach the editor to.Stacktrace
Tracking the issue
ace/lib/ace/lib/dom.js
Line 263 in d957259
ace/lib/ace/scrollbar.js
Line 106 in 94422a4
ace/lib/ace/virtual_renderer.js
Line 108 in 94422a4
ace/lib/ace/virtual_renderer.js
Line 70 in 94422a4
and here I'll stop,
because it looks like only uses for thisbecause I was lazy and found workaround anyway.VirtualRenderer
classes are related to testing: [removed image]Workaround:
Currently, I use
setTimeout
orrequestAnimationFrame
to delay attaching the editor to the element, but it looks bad.The text was updated successfully, but these errors were encountered: