Is there a good way to access the properties of the default popup object created for a SceneView? (as in https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#popup)
view.on("click", function (event) {
console.log(view.popup);
console.log(view.popup.id);
console.log(view.popup.title);
}By logging view.popup to the console (using the lines of code shown above) I can see that the properties exist because the below lines are logged to the console (part of the output from Line 2).
id: "17e2bf83e50-widget-1"
title: "k0"
I then log just the id property (Line 3) and it prints just the id property. However, if I try to log view.popup.title (Line 4), it logs 'null' to the console. Anything else I try to print out using console.log prints the same value found within view.popup. I originally thought I was missing something about how things work in JavaScript but after a query on stackoverflow it seems like maybe it has to do with how view.popup is constructed? Maybe that view.popup.title is made later in the code and doesn't technically exist at that moment when I'm trying to log it?