fix: consider arrow for bound text element (#6297)
* fix: consider arrow for bound text element * add spec
This commit is contained in:
@ -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")
|
||||
);
|
||||
};
|
||||
|
Reference in New Issue
Block a user