Skip to content

Commit d00a7dd

Browse files
committed
Don't hide search after selecting result. closes #289
1 parent 97d1fae commit d00a7dd

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

static/search.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,6 @@ var Search = Control.extend({
459459
self.navigate($a.attr("href"));
460460
return;
461461
}
462-
463-
self.clear();
464462
});
465463
}
466464
},
@@ -720,9 +718,6 @@ var Search = Control.extend({
720718
}else{
721719
window.location.href = href;
722720
}
723-
724-
this.clear();
725-
726721
}
727722
// ---- END HELPERS ---- //
728723

static/search.less

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,15 @@
5353
&.has-value .search-icon-cancel{
5454
display:block;
5555
}
56+
@media screen and (max-width: @breakpoint) {
57+
&.has-value{
58+
width: 200px;
59+
}
60+
}
5661
}
57-
5862
@media screen and (min-width: @breakpoint) {
59-
display: block;
60-
}
63+
display: block;
64+
}
6165
}
6266

6367
.bottom-left{
@@ -72,7 +76,7 @@
7276
left: 0;
7377
overflow-y: auto;
7478
padding: 2em 0;
75-
79+
z-index: 1;
7680
.search-cancel{
7781
color: @code-color;
7882
display: block;

0 commit comments

Comments
 (0)