mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: go to item when press enter did not work
This commit is contained in:
parent
24693cedce
commit
ef5ce21820
1 changed files with 2 additions and 1 deletions
|
|
@ -197,11 +197,12 @@ export const search: BoundMethodCreator<[string]> = dispatch => searchKey => {
|
|||
}
|
||||
|
||||
export const goTo: BoundMethodCreator<[string[]]> = dispatch => async currentPath => {
|
||||
dispatch.set({ searchKey: '', searched: false })
|
||||
visibleNodesGenerator.search(null)
|
||||
dispatch.call(updateVisibleNodes)
|
||||
tasksAfterRender.push(() => {
|
||||
dispatch.call(expandTo, currentPath)
|
||||
})
|
||||
dispatch.set({ searchKey: '', searched: false })
|
||||
}
|
||||
|
||||
export const setExpand: BoundMethodCreator<[TreeNode, boolean]> = dispatch => (
|
||||
|
|
|
|||
Loading…
Reference in a new issue