1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-10 11:35:52 +01:00

Update SearchMenu.tsx

This commit is contained in:
zsviczian 2024-09-10 18:42:35 +02:00 committed by GitHub
parent ad14721cb5
commit cd61f5964c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -6,7 +6,6 @@ import { useApp, useExcalidrawSetAppState } from "./App";
import { debounce } from "lodash";
import type { AppClassProperties } from "../types";
import { isTextElement, newTextElement } from "../element";
import type { ExcalidrawTextElement } from "../element/types";
import { measureText } from "../element/textElement";
import { addEventListener, getFontString } from "../utils";
import { KEYS } from "../keys";
@ -135,7 +134,6 @@ export const SearchMenu = () => {
if (match) {
const matchAsElement = newTextElement({
text: match.keyword,
rawText: match.keyword,
x: match.textElement.x + (match.matchedLines[0]?.offsetX ?? 0),
y: match.textElement.y + (match.matchedLines[0]?.offsetY ?? 0),
width: match.matchedLines[0]?.width,