Skip to content

Commit

Permalink
fix(blocks): can not search in at menu with IME
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Sun committed Sep 27, 2024
1 parent c4b4a0a commit 3ecef3d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/blocks/src/_common/components/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ export function getQuery(
if (nativeRange.startContainer !== nativeRange.endContainer) {
return null;
}
const textNode = nativeRange.startContainer;
if (textNode.nodeType !== Node.TEXT_NODE) {
return null;
}
const curRange = inlineEditor.getInlineRange();
if (!startRange || !curRange) {
return null;
Expand Down

0 comments on commit 3ecef3d

Please sign in to comment.