Skip to content

Commit

Permalink
fix: Search box is forbidden in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyib committed Mar 29, 2020
1 parent eed8fe9 commit 094a74d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion layout/_third-party/search/localsearch.pug
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ script.
$result.html(resultInnerHtml);
};
$input.on('input', searchPost);
$input.on('keypress', function (e) {
$input.on('keyup', function (e) {
if (e.keyCode === Stun.utils.codeToKeyCode('Enter')) {
searchPost();
}
Expand Down
1 change: 0 additions & 1 deletion source/css/_common/components/search/common.styl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ search-input-padding = 1rem;
background-color: var(--color-gray-200);
outline: 0;
transition: border-color .3s;
user-select: none;

&:hover,
&:focus {
Expand Down

0 comments on commit 094a74d

Please sign in to comment.