Fixed dropdown menu show/hide issue