fix(dropdownToggle): Duplicate code when handling click