mirror of
https://github.com/mue/mue.git
synced 2026-06-08 14:10:42 +02:00
feat: improve time settings, fix search button etc
This commit is contained in:
@@ -34,6 +34,10 @@ export default class Search extends React.PureComponent {
|
||||
}
|
||||
}
|
||||
|
||||
searchButton() {
|
||||
const value = document.getElementById('searchtext').value || 'mue fast';
|
||||
window.location.href = this.state.url + `?${this.state.query}=` + value;
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
let url;
|
||||
@@ -68,7 +72,7 @@ export default class Search extends React.PureComponent {
|
||||
<div id='searchBar'>
|
||||
<form action={this.state.url}>
|
||||
{this.state.microphone}
|
||||
<SearchIcon onClick={() => searchButton()} id='searchButton'/>
|
||||
<SearchIcon onClick={() => this.searchButton()} id='searchButton'/>
|
||||
<input type='text' placeholder={this.props.language} name={this.state.query} id='searchtext'/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user