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
Describe the bug
ImageMapster provides two different ways to navigate to a URL when an area is clicked:
onClick Handler - When onClick is defined and return value is true, IM will navigate to the href defined on the AREA element that was clicked
clickNavigate - When clickNavigate is true, IM uses the AreaData href which may or may not be the href of the AREA element that was clicked on as AreaData href will contain the href defined by the first AREA element that contained the given mapKey.
To Reproduce
Steps to reproduce the behavior:
Note that navigation within the fiddle will always fail since the destination doesn't permit iFrames. Hover over the error to see which page was attempted to be loaded
Navigation attempts to go to microsoft.com as defined by Paul href which is the first area defined for mapKey beatles
Set clickNavigate to false in the fiddle
Re-run fiddle
Click on George
Navigation attempts to go to yahoo.com as defined by George href
Expected behavior
Navigation href should be consistent regardless of which approach triggered the navigation. When/Where Mapster uses area element props vs AreaData props is not well defined and inconsistent (separate issue). For this particular situation, the resolution of href should be Area element that was clicked on then AreaData is Area doesn't have an href.
Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
ImageMapster provides two different ways to navigate to a URL when an area is clicked:
href
defined on theAREA
element that was clickedAREA
element that was clicked on as AreaData href will contain the href defined by the first AREA element that contained the given mapKey.To Reproduce
Steps to reproduce the behavior:
Note that navigation within the fiddle will always fail since the destination doesn't permit iFrames. Hover over the error to see which page was attempted to be loaded
George
(last guy on right)microsoft.com
as defined byPaul
href which is the firstarea
defined for mapKeybeatles
clickNavigate
tofalse
in the fiddleGeorge
yahoo.com
as defined byGeorge
hrefExpected behavior
Navigation href should be consistent regardless of which approach triggered the navigation. When/Where Mapster uses
area
element props vsAreaData
props is not well defined and inconsistent (separate issue). For this particular situation, the resolution of href should beArea
element that was clicked on thenAreaData
isArea
doesn't have an href.Screenshots
N/A
Desktop (please complete the following information):
N/A
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: