mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
edit text when clicked on with text tool (#1283)
This commit is contained in:
parent
d3ed5a42fc
commit
e9b4700bba
4 changed files with 40 additions and 56 deletions
|
@ -5,9 +5,9 @@ import {
|
|||
} from "./types";
|
||||
|
||||
export function isTextElement(
|
||||
element: ExcalidrawElement,
|
||||
element: ExcalidrawElement | null,
|
||||
): element is ExcalidrawTextElement {
|
||||
return element.type === "text";
|
||||
return element != null && element.type === "text";
|
||||
}
|
||||
|
||||
export function isLinearElement(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue