mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: quick add
This commit is contained in:
committed by
Gabriel Horner
parent
1da660905c
commit
16f8188fd1
@@ -6,7 +6,7 @@ export function useQuickAdd() {
|
||||
return React.useCallback<TLReactCallbacks<Shape>['onCanvasDBClick']>(async app => {
|
||||
// Give a timeout so that the quick add input will not be blurred too soon
|
||||
setTimeout(() => {
|
||||
app.selectTool('logseq-portal').selectedTool.transition('creating')
|
||||
app.transition('logseq-portal').selectedTool.transition('creating')
|
||||
}, 100)
|
||||
}, [])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user