Commit 71da8ffa authored by Clement Ho's avatar Clement Ho

Populate selected item in filtered search input

parent 0c1c26c0
......@@ -12,7 +12,8 @@
const dataValueSet = this.setDataValueIfSelected(e.detail.selected);
if (!dataValueSet) {
console.log('set value');
const username = e.detail.selected.querySelector('.dropdown-light-content').innerText.trim();
gl.FilteredSearchManager.addWordToInput(this.getSelectedText(username));
}
this.dismissDropdown();
......
......@@ -9,7 +9,10 @@
}
itemClicked(e) {
console.log('author clicked');
const username = e.detail.selected.querySelector('.dropdown-light-content').innerText.trim();
gl.FilteredSearchManager.addWordToInput(this.getSelectedText(username));
this.dismissDropdown();
}
renderContent() {
......
......@@ -12,7 +12,8 @@
const dataValueSet = this.setDataValueIfSelected(e.detail.selected);
if (!dataValueSet) {
console.log('set value');
const milestoneName = `%${e.detail.selected.querySelector('.btn-link').innerText.trim()}`;
gl.FilteredSearchManager.addWordToInput(this.getSelectedText(milestoneName));
}
this.dismissDropdown();
......
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