Commit 9740f6a7 authored by Clement Ho's avatar Clement Ho

Add additional EE check

parent be646ba0
......@@ -425,7 +425,9 @@ window.emitSidebarEvent = window.emitSidebarEvent || $.noop;
// Automatically close dropdown after assignee is selected
// since CE has no multiple assignees
if (getSelected().length === $dropdown.data('max-select')) {
// EE does not have a max-select
if ($dropdown.data('max-select') &&
getSelected().length === $dropdown.data('max-select')) {
// Close the dropdown
this.el.click();
......
......@@ -32,10 +32,6 @@ describe 'New/edit issue', feature: true, js: true do
click_link user.name
end
# TODO: Figure out a better way to wait for dropdown CSS hide
# animation to complete
# sleep 0.3
expect(page.find('.dropdown-menu-user', visible: false)).not_to be_visible
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment