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:
@@ -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'
|
||||
);
|
||||
|
Reference in New Issue
Block a user