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
When mapster is called a subsequent time after an unbind is called - This would be a common pattern in React where a component could be mounted, unmounted & remounted (e.g., StrictMode in dev build).
Expected Behavior
Buttons should have a black shade
Actual Behavior
Buttons do not have black shade
When mapster is called a subsequent time after an unbind is called - This would be a common pattern in React where a component could be mounted, unmounted & remounted (e.g., StrictMode in dev build).
Expected Behavior
Buttons should have a black shade
Actual Behavior
Buttons do not have black shade
Environment Info
Any OS, Any browser
Expected Behavior
Buttons should have a black shade
Additional Information
This appears to be a race condition so it does not occur every time although it occurs more often then not. If the subsequent call to mapster is deferred (e.g., setTimeout), the problem normally does not occur (depending on the size of image being loaded, duration of timeout, etc.).
The text was updated successfully, but these errors were encountered:
Describe the bug
When
mapster(options)
is invoked multiple times on a valid image map, imagemapster is not bound to the map.There are a couple of scenarios where this type of situation can occur:
mapster
is called multiple times - this would be an uncommon pattern but possible nonethelessmapster
is called a subsequent time after anunbind
is called - This would be a common pattern in React where a component could be mounted, unmounted & remounted (e.g.,StrictMode
in dev build).Reproduction
Scenario 1: https://jsfiddle.net/techfg/gn10ahzk/latest
Scenario 2: https://jsfiddle.net/techfg/37nje6fs/latest
Steps to reproduce
When
mapster
is called multiple times - this would be an uncommon pattern but possible nonethelessSteps to reproduce
Repro: https://jsfiddle.net/techfg/gn10ahzk/latest
Expected Behavior
Buttons should have a black shade
Actual Behavior
Buttons do not have black shade
When
mapster
is called a subsequent time after anunbind
is called - This would be a common pattern in React where a component could be mounted, unmounted & remounted (e.g.,StrictMode
in dev build).Steps to reproduce
Repro: https://jsfiddle.net/techfg/37nje6fs/latest
Expected Behavior
Buttons should have a black shade
Actual Behavior
Buttons do not have black shade
Environment Info
Any OS, Any browser
Expected Behavior
Buttons should have a black shade
Additional Information
This appears to be a race condition so it does not occur every time although it occurs more often then not. If the subsequent call to
mapster
is deferred (e.g.,setTimeout
), the problem normally does not occur (depending on the size of image being loaded, duration of timeout, etc.).The text was updated successfully, but these errors were encountered: