mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
add className 'searchInput'
This commit is contained in:
@@ -214,7 +214,7 @@ class NoteList extends React.Component {
|
||||
}
|
||||
|
||||
if (location.pathname.match(/\/searched/)) {
|
||||
return searchFromNotes(this.props.data, document.getElementsByClassName('TopBar__control-search-input___browser-main-TopBar-')[0].childNodes[0].value)
|
||||
return searchFromNotes(this.props.data, document.getElementsByClassName('searchInput')[0].value)
|
||||
}
|
||||
|
||||
let storageKey = params.storageKey
|
||||
|
||||
@@ -218,6 +218,7 @@ class TopBar extends React.Component {
|
||||
onChange={(e) => this.handleSearchChange(e)}
|
||||
placeholder='Search'
|
||||
type='text'
|
||||
className='searchInput'
|
||||
/>
|
||||
</div>
|
||||
{this.state.search > 0 &&
|
||||
|
||||
Reference in New Issue
Block a user