You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have not considered this case for the reporter component.
In this case, when the language is changed the Reporter component is reloaded from the instant app.
If the user is in the create feature workflow then the editor widget is not getting destroyed.
Solution
To avoid this issue we can destroy the editor widget instance in the create-feature component's disconnectedCallback lifecycle method.
This will make sure if the editor is created it will be destroyed and any graphics drawn/highlighted will be removed
/**
* StencilJS: Called every time the component is disconnected from the DOM,
*/
disconnectedCallback(): void {
if (this._editor) {
this._editor.destroy();
}
}
@jmhauck - please let us know your thoughts on this
I configured a new reporter app with the language switcher option.
https://localgovdev.mapsdevext.arcgis.com/apps/instant/reporter/index.html?appid=c51914bdd9974e1cba2cb1bd1c5dec07
The text was updated successfully, but these errors were encountered: