Skip to content

Commit 7b71566

Browse files
authored
Merge pull request #294 from canjs/289-dont-hide-results
Don't hide search after selecting result
2 parents 86d5f8d + d00a7dd commit 7b71566

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
},
@@ -722,9 +720,6 @@ var Search = Control.extend({
722720
}else{
723721
window.location.href = href;
724722
}
725-
726-
this.clear();
727-
728723
}
729724
// ---- END HELPERS ---- //
730725

static/search.less

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,15 @@
5454
&.has-value .search-icon-cancel{
5555
display:block;
5656
}
57+
@media screen and (max-width: @breakpoint) {
58+
&.has-value{
59+
width: 200px;
60+
}
61+
}
5762
}
58-
5963
@media screen and (min-width: @breakpoint) {
60-
display: block;
61-
}
64+
display: block;
65+
}
6266
}
6367

6468
#left.search-showing .search-bar .search-wrap .search {
@@ -77,7 +81,7 @@
7781
left: 0;
7882
overflow-y: auto;
7983
padding: 2em 0;
80-
84+
z-index: 1;
8185
.search-cancel{
8286
color: @code-color;
8387
display: block;

0 commit comments

Comments
 (0)