Skip to content

Commit

Permalink
fix input warning
Browse files Browse the repository at this point in the history
  • Loading branch information
siqiii committed Jun 23, 2020
1 parent 2ecaec3 commit d0a91ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/ui/pages/Home/Chats/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export default class Chats extends Component {
onInput={e => this.filter(e.target.value)}
// onKeyUp={e => this.navigation(e)}
placeholder={filtered.query ? '' : '搜索 ...'}
value={filtered.query ? filtered.query : ''}
// value={filtered.query ? filtered.query : ''}
ref="search"
type="text" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/js/ui/pages/Second/Contacts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default class Contacts extends Component {
id="search"
onInput={e => this.filter(e.target.value)}
placeholder={query ? '' : '搜索 ...'}
value={query ? query : ''}
// value={query ? query : ''}
ref="search"
type="text" />
</div>
Expand Down

0 comments on commit d0a91ae

Please sign in to comment.