Hi @diegoazh, I appreciate your work and look forward to your response.
I made an example based on your project on stackblitz where you can clearly see that InfoWindow components are not deleted after they are removed from the data source. After clicking on the text in InfoWindow, check the log in the console. In theory, the marker and window should be deleted on the map together, but only the marker is deleted.
GvmInfoWindow components are not deleted (not closed) in a vue template when the object responsible for rendering this component is deleted in a reactive variable.
Expected behavior
The marker and window should be removed from the map if the element responsible for drawing the marker and window was deleted in the data source.
Hi @diegoazh, I appreciate your work and look forward to your response. I made an example based on your project on stackblitz where you can clearly see that InfoWindow components are not deleted after they are removed from the data source. After clicking on the text in InfoWindow, check the log in the console. In theory, the marker and window should be deleted on the map together, but only the marker is deleted.
Originally posted by @Tuhtarov in https://github.com/diegoazh/gmap-vue/issues/323#issuecomment-2097371502
Describe the bug
GvmInfoWindow components are not deleted (not closed) in a vue template when the object responsible for rendering this component is deleted in a reactive variable.
Expected behavior
The marker and window should be removed from the map if the element responsible for drawing the marker and window was deleted in the data source.
Current behavior
Only the marker is removed, the window remains.
Desktop
OS: windows 10 Browser chrome (123.0.6312.123)
Versions
Node: v20.11.1 NPM: 10.2.4 VUE: 3.4.21 VITE: 5.2.0
Package manager
NPM
Plugin version
2.1.1