Closed MattiasBuelens closed 7 months ago
When rapidly creating and destroying the UI (such as when using Webpack's Hot Module Replacement), I ran into an edge case where UIContainer._onSourceChange was called before the <theoplayer-menu-group> was properly registered. This led to a TypeError when trying to call closeMenu() on a non-upgraded element.
UIContainer._onSourceChange
<theoplayer-menu-group>
TypeError
closeMenu()
This should hopefully fix that.
When rapidly creating and destroying the UI (such as when using Webpack's Hot Module Replacement), I ran into an edge case where
UIContainer._onSourceChange
was called before the<theoplayer-menu-group>
was properly registered. This led to aTypeError
when trying to callcloseMenu()
on a non-upgraded element.This should hopefully fix that.