Closed sgatz closed 7 years ago
@sgatz thanks! Does https://github.com/thoughtbot/refills/pull/439 take care of this for you? Those changes are updated on http://refills.netlify.com/#dropdown-snippets
@creuter Yep, that totally did the trick! thanks for the fix.
The dropdown here: http://refills.netlify.com/
uses target.event to determine when to open the dropdown. That means if you add an image (or any other html tag) within the to-be-clicked item, it won't open. The target.event gives what was actually clicked on, not the item that was meant to be the opening event.
Even in your example page, try clicking on the little down arrow - it won't open since target.event is getting the span.
non-working example:
this works, but for only the text not in a span
The JS probably needs to be moved to use $(this), but I'm having problems trying to make it work myself (it's a little above my skill level).