mirror of
https://github.com/mue/mue.git
synced 2026-07-15 13:03:55 +02:00
fix: voice search no longer redirects on empty and now has reload warning
This commit is contained in:
@@ -39,6 +39,10 @@ export default class Search extends React.PureComponent {
|
||||
};
|
||||
|
||||
voiceSearch.onend = () => {
|
||||
if (searchText.value === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.href = this.state.url + `?${this.state.query}=` + searchText.value;
|
||||
}, 1000);
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
|
||||
.micIcon {
|
||||
margin-right: 10px;
|
||||
position: relative !important;
|
||||
}
|
||||
|
||||
.dark .searchBar {
|
||||
|
||||
Reference in New Issue
Block a user