fix: quick add

This commit is contained in:
Konstantinos Kaloutas
2023-03-27 19:28:04 +03:00
committed by Gabriel Horner
parent 1da660905c
commit 16f8188fd1

View File

@@ -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)
}, [])
}