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.
Merge pull request #2895 from damirkotoric/dropdown-link-with-child-elements

Support child elements inside data-dropdown anchors