b4398de5c5
Added bootstrap dropdown event triggers to invoke the open and close methods of the dropdown, allowing for the binding of array key events Added #17465 fix entry to CHANGELOG Fixed multi-dropdown selected row index conflict Fixed whitespace diff Added padding to the dropdown content iterative scroll as well as new conditional scrolls to scroll all the way to the top when the first item of a list is selected and to scroll all the way to the bottom when the last item of a list is selected Added conditionals to the enable and disable autocomplete methods to stop multiple invocations without any enabled/disabled state change Fixes some incorrect firing of requests. The dropdown box was invoking a new query every time it closed and the GitLabDropdownRemote callback was invoking a new query which was causing the dropdown double render issue. Added .selectable css class to dropdown list items that are not dividers or headers and altered selectors to account for that. Moved scroll padding Number to variable. Removed unused method Started Dropdown tests Added fixture and began first test Almost finished, navigation done, action and close needed YAY. TESTS DONE. Altered test and fixed click started removing selectable class use Fixed as reviewed altered selection method Fixed autocomplete shutting dropdown on arrow key use patched XSS vulns updated tests f Added click fixes
16 lines
688 B
Text
16 lines
688 B
Text
%div
|
|
.dropdown.inline
|
|
%button#js-project-dropdown.dropdown-menu-toggle{type: 'button', data: {toggle: 'dropdown'}}
|
|
Projects
|
|
%i.fa.fa-chevron-down.dropdown-toggle-caret.js-projects-dropdown-toggle
|
|
.dropdown-menu.dropdown-select.dropdown-menu-selectable
|
|
.dropdown-title
|
|
%span Go to project
|
|
%button.dropdown-title-button.dropdown-menu-close{aria: {label: 'Close'}}
|
|
%i.fa.fa-times.dropdown-menu-close-icon
|
|
.dropdown-input
|
|
%input.dropdown-input-field{type: 'search', placeholder: 'Filter results'}
|
|
%i.fa.fa-search.dropdown-input-search
|
|
.dropdown-content
|
|
.dropdown-loading
|
|
%i.fa.fa-spinner.fa-spin
|