Support child elements inside data-dropdown anchors

If data-dropdown anchor contains a child element (like an image for an
icon), this code will allow the appropriate dropdown functionality to
execute even when those child element are clicked.

Currently, if you place a child element like an image inside of the icon clicking directly on that child element will not cause the dropdown functionality to trigger.