Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] exception TypeError: Cannot read properties of null (reading '5') encountered after unbind #422

Closed
techfg opened this issue Apr 30, 2024 · 0 comments
Labels

Comments

@techfg
Copy link
Collaborator

techfg commented Apr 30, 2024

Describe the bug

After unbinding a map, the following exception is encountered when there is a queued mouse event that triggers after the unbind.

image

jquery.imagemapster.js:2642 
 Uncaught (in promise) TypeError: Cannot read properties of null (reading '5')
    at w.MapData.ensureNoHighlight (jquery.imagemapster.js:2642:19)
    at w.MapData.<anonymous> (jquery.imagemapster.js:2286:8)
    at i.clearEffects (jquery.imagemapster.js:2451:20)
    at jquery.imagemapster.js:2262:10
ensureNoHighlight	@	jquery.imagemapster.js:2642
(anonymous)	@	jquery.imagemapster.js:2286
i.clearEffects	@	jquery.imagemapster.js:2451
(anonymous)	@	jquery.imagemapster.js:2262
Promise.then (async)		
(anonymous)	@	jquery.imagemapster.js:2258
i.mouseout	@	jquery.imagemapster.js:2445
dispatch	@	jquery.min.js:2
v.handle	@	jquery.min.js:2

Reproduction

https://jsfiddle.net/techfg/2ysfwq7x/47/

Steps to reproduce

  1. Go to https://jsfiddle.net/techfg/2ysfwq7x/47/
  2. Open the developer console - This is required because jsFiddle doesn't output the exception in its built-in console area
  3. Hover over any of the items in the vegetable tray to display a tooltip
  4. Immediately click the Unbind button after completing step 3
  5. Wait for 5 seconds - The exception is displayed in dev console
  6. Clear the dev console logs
  7. Click Reset button
  8. Click Disable Tooltips button
  9. Click Enable Highlight button
  10. Hover over any of the items in the vegetable tray to display a tooltip
  11. Immediately click the Unbind button after completing step 3
  12. Wait for 5 seconds - The exception is displayed in dev console

Environment Info

Windows 11 Edge Version 124.0.2478.67 (Official build) (64-bit) but any browser will reproduce

Expected Behavior

No exception is encountered

Additional Information

No response

@techfg techfg added the bug label Apr 30, 2024
@techfg techfg closed this as completed in 6e2b45d Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant