Fix bug in navbar search

This commit is contained in:
the1812 2019-05-01 12:14:23 +08:00
parent 1e543d0e13
commit 76ead03486
4 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -528,8 +528,8 @@ class SearchBox extends NavbarComponent
this.disabled = true;
this.html = /*html*/`
<form id="custom-navbar-search" autocomplete="off" target="_blank" method="get" action="https://search.bilibili.com/all">
<input type="hidden" name="from_source" value="banner_search">
<input type="text" placeholder="搜索" name="keyword">
<input type="hidden" name="from_source" value="banner_search">
<a style="display: none" target="_blank" class="recommended-target"></a>
<button type="submit" title="搜索">
<svg style="width:22px;height:22px" viewBox="0 0 24 24">