mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat: focus search input on opening sidebar
This commit is contained in:
parent
1dce80d78e
commit
b663ca052a
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ const onKeyDown = dispatch => e => {
|
|||
const toggleShowSideBar = dispatch => () => dispatch(({ shouldShow }) => dispatch(setShouldShow, !shouldShow))
|
||||
|
||||
const setShouldShow = dispatch => shouldShow => {
|
||||
dispatch({ shouldShow })
|
||||
dispatch({ shouldShow }, shouldShow ? DOMHelper.focusSearchInput : null)
|
||||
DOMHelper.setBodyIndent(shouldShow)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue