1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

add className 'searchInput'

This commit is contained in:
Sosuke Suzuki
2017-05-30 18:54:13 +09:00
parent 2364348df4
commit 10e75041e8
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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 &&