ddubrava / angular-yandex-maps

🗺️ Yandex.Maps Angular components that implement the Yandex.Maps JavaScript API
https://ddubrava.github.io/angular8-yandex-maps/#/
MIT License
57 stars 7 forks source link

fix: elementRef.nativeElement.firstChild is null after YMapMarker and YMapControl creation #253

Closed ddubrava closed 1 month ago

ddubrava commented 1 month ago

What kind of change does this PR introduce?

Which library does this PR affect?

What is the current behavior?

If we change a configuration, YMapMarker and YMapControl become broken. The API removes them from the DOM, and after a configuration change, elementRef.nativeElement.firstChild is null

What is the new behavior?

The element is saved to a separate variable, we pass it on a configuration change.

Does this PR introduce a breaking change?