LPS-35181 - aui:nav-item dropdown does not hide on document click

also add and remove class active from dropdowns