mirror of
https://github.com/logseq/logseq.git
synced 2026-05-25 21:24:21 +00:00
fix(whiteboard): an issue on clicking logseq search items
This commit is contained in:
@@ -640,9 +640,9 @@ export class LogseqPortalShape extends TLBoxShape<LogseqPortalShapeProps> {
|
||||
setPrefixIcon(actionIcon)
|
||||
setFocusedOptionIdx(index)
|
||||
}}
|
||||
// we have to use mousedown && stop propagation, otherwise some
|
||||
// we have to use mousedown && stop propagation EARLY, otherwise some
|
||||
// default behavior of clicking the rendered elements will happen
|
||||
onMouseDown={e => {
|
||||
onMouseDownCapture={e => {
|
||||
if (onChosen()) {
|
||||
e.stopPropagation()
|
||||
e.preventDefault()
|
||||
|
||||
Reference in New Issue
Block a user