Hi,
I have a situation when I query Editor widget's element after it's added to the the map
const widgetDom = document.getElementsByClassName('esri-editor')[0];
In case when I do it after a while the page was loaded it happens successfully. But when I do right after the page is loaded (also after Editor widget is added to the view) it returns "undefined". I don't get what's the difference. Why it works fine in one case but doesn’t in another. Is there any event I can subscribe to make sure the widget is added to the DOM?