Hello All,
Recently, I updated the frontend packages from version 4.28 to 4.32, and I am experiencing an issue with pop-ups.
To summarize, the pop-ups are not displaying correctly, and the actions are not being rendered. In the HTML source, the pop-up actions are there, and the view.popup.actions.items are present, but when displayed to the screen, website, nothing appears.
How it should be: (old version 4.28) — outlined in red, showing the buttons.
How is it now 4.32(no action buttons are displayed)
The pop-up is called with view.popup (view: SceneView) using:
new Popup({
...,
actions: [action1, action2]
}); where actions are ActionButtons.
I have also tried using PopupTemplate with a new FeatureLayer, but the same behavior occurs.
The code is the same, and I’ve tried different approaches to resolve the issue, but to no avail. 😞
Any help would be greatly appreciated.
Thanks!
Solved! Go to Solution.
It should work with a popupTemplate with actions.
If you copy and paste from this example does it work?
https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/
It should work with a popupTemplate with actions.
If you copy and paste from this example does it work?
https://developers.arcgis.com/javascript/latest/sample-code/popup-actions/
Well, found the issue, by trying your suggestion, so
I just needed to update index.html css
<link
rel="stylesheet"
href="https://js.arcgis.com/4.32/esri/themes/light/main.css"
/>
Well it was a conflict of css what was needed to be updated