BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
88ed0159
Commit
88ed0159
authored
Dec 09, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clear button so that it resets the dropdowns properly
parent
e5b061b8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
filtered_search_dropdown.js.es6
...vascripts/filtered_search/filtered_search_dropdown.js.es6
+4
-0
filtered_search_manager.js.es6
...avascripts/filtered_search/filtered_search_manager.js.es6
+8
-0
No files found.
app/assets/javascripts/filtered_search/filtered_search_dropdown.js.es6
View file @
88ed0159
...
...
@@ -117,6 +117,10 @@
item.droplab_hidden = !match && !matchWithoutPrefix;
return item;
}
hideDropdown() {
this.getCurrentHook().list.hide();
}
}
global.FilteredSearchDropdown = FilteredSearchDropdown;
...
...
app/assets/javascripts/filtered_search/filtered_search_manager.js.es6
View file @
88ed0159
...
...
@@ -246,7 +246,15 @@
this.filteredSearchInput.value = '';
this.clearSearchButton.classList.add('hidden');
// Force dropdown to hide
this.mapping[this.currentDropdown].reference.hideDropdown();
// Re-Load dropdown
this.setDropdown();
// Reposition dropdown so that it is aligned with cursor
this.updateDropdownOffset(this.currentDropdown);
}
checkForBackspace(e) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment