mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: consider arrow for bound text element (#6297)
* fix: consider arrow for bound text element * add spec
This commit is contained in:
parent
38fc51b4e3
commit
bd4424bbe3
3 changed files with 67 additions and 2 deletions
|
@ -139,7 +139,7 @@ export const hasBoundTextElement = (
|
|||
element: ExcalidrawElement | null,
|
||||
): element is MarkNonNullable<ExcalidrawBindableElement, "boundElements"> => {
|
||||
return (
|
||||
isBindableElement(element) &&
|
||||
isTextBindableContainer(element) &&
|
||||
!!element.boundElements?.some(({ type }) => type === "text")
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue