I use ArcGIS API for Javascript to build app, now I built have a list of selections and map, I want to zoom on selected feature when select it.
my code same as this URL
You could watch for when the popup is visible, then zoom to the selected feature.
reactiveUtils.watch(
() => view.popup.visible,
() => {
console.log(`Popup visible: ${visible}`);
});
Edit:
Here is another possible solution
Solved: Zoom to selected feature using JavaScript - Esri Community