1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-29 09:40:10 +02:00

saveditempane: fix filtering and autofocus

This commit is contained in:
Kushagra Gour
2019-03-18 15:45:48 +05:30
parent 95ff5c5fe2
commit 351905e44d
2 changed files with 17 additions and 13 deletions

View File

@@ -450,11 +450,6 @@ export default class App extends Component {
shouldOpen === undefined ? !this.state.isSavedItemPaneOpen : shouldOpen
});
if (this.state.isSavedItemPaneOpen) {
window.searchInput.focus();
} else {
window.searchInput.value = '';
}
document.body.classList[this.state.isSavedItemPaneOpen ? 'add' : 'remove'](
'overlay-visible'
);