Select to view content in your preferred language

Features Component close event error - removes component from DOM

75
2
Jump to solution
Wednesday
FC_Basson
MVP Alum

The Feature Component of the Map Components is creating an unexpected DOM event when closing it.  I would expect the component to be hidden in the DOM, but instead it gets completely removed from the DOM.  You can also see this in the component demo.  Then when clicking on the map again, the component is gone and the query can't be executed and the following error is returned. 

FC_Basson_0-1759386393663.png

 

Is this the expected behaviour?  

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Esri Frequent Contributor

Looks like this is fixed in the upcoming 4.34 release. Thanks!

If you need to handle this in the 4.33 release, you can add `auto-destroy-disabled` attribute to the component. 

https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-features/#autoDestr...

View solution in original post

0 Kudos
2 Replies
ReneRubalcava
Esri Frequent Contributor

Looks like this is fixed in the upcoming 4.34 release. Thanks!

If you need to handle this in the 4.33 release, you can add `auto-destroy-disabled` attribute to the component. 

https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-features/#autoDestr...

0 Kudos
FC_Basson
MVP Alum

Thanks René.  I missed that attribute.