Adding popupTemplate on graphic in the sketch widget graphic layer fails at 4.21

468
6
11-26-2021 01:01 AM
ChristopheSuter
New Contributor III

Hi,

PopupTemplate fails on the sketchWidget graphicsLayer at 4.21 here is a code sample (draw a rectangle with the rectangle tool to show popup)

4.21 (fails):

https://codepen.io/christophesuter/pen/QWMeqmo?editors=1000

4.20 (works):

https://codepen.io/christophesuter/pen/VwzoMGM?editors=100

Am I doing something wrong ? Anyone had the same problem ?

Tags (1)
0 Kudos
6 Replies
JeffreyWilkerson
Occasional Contributor III

Sorry, I've tried to get a workaround but this should be working.  In the error is the message "Instance of 'esri.layers.GraphicsLayer' is already destroyed", but I can't figure out why that would be happening.  I'm thinking you should open a ticket with Esri on this one as it looks like a bug to me. 

HeatherGonzago
Esri Contributor

Hi @ChristopheSuter I'm taking a look at this and will get back to you shortly.

 

Thanks,

Heather

ChristopheSuter
New Contributor III

Hi Heather,

Meanwhile I had this BUG assignment: BUG-000144839 - PopupTemplate fails on the sketchWidget graphicsLayer

Best,

Christophe

0 Kudos
ararana
New Contributor

Has this issue been identified? I'm running into the same issue on 4.22.

Downgraded to 4.20 and everything works fine. 

Thanks!

0 Kudos
YesidLeonardoLopezSierra
New Contributor

Hey, there is any update on this? I made it works but I had to delete the graphic from the graphics layer and add it again but by creating a whole new polygon..

0 Kudos
HeatherGonzago
Esri Contributor

Hi, we are still investigating this issue. The problem is not specifically with the popupTemplate but rather on the Sketch end. As soon as we get a better idea of the issue causing this and when it will be addressed, we will make certain to pass that information along.

 

Thanks for reaching out,

 

Heather

0 Kudos