Fixed nested tab elements li activation

Added closest li instead of direct parent so that you can nest multiple elements within tabs, such as button groups
Merge pull request #13191 from AshleyDawson/master

Fixed nested tab elements li activation