Before this commit, the callback which selects the currently used style in the dropdown menu was binded to the mousedown event on the div which contains the dropdown-toggle and the dropdown-menu. This was wrong as the callback is thus called even when clicking in the dropdown menu.