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
and let's second element with id "tcolor" trigger the color chooser then in the onselect call back the alert method in alerting the first element id , not the second element id , which triggers the chooser , and if we observe the "element" , which we pass is the array of elements which have that selector ,not the element which triggers the chooser.
The text was updated successfully, but these errors were encountered:
The element variable has been set to the collection of onclickable
elements, so use the event.target to return the calling element
instead. This is only what I needed, not a thorough fix.
The fix to this is for the plugin to call the onSelect callback function with the local event.target or $(event.target) instead of the plugin's value for element. I'm not sure which was intended, what would be normal jQuery plugin behavior, or what similar issues may need fixing, so I don't have a patch. My fork uses event.target since that was enough of a fix for my needs.
Lets consider we have two html elements like below
and simpleColor javascript code is like below
and let's second element with id "tcolor" trigger the color chooser then in the onselect call back the alert method in alerting the first element id , not the second element id , which triggers the chooser , and if we observe the "element" , which we pass is the array of elements which have that selector ,not the element which triggers the chooser.
The text was updated successfully, but these errors were encountered: