Fix outlines on text shapes (#1781)

This PR fixes the extra outlines on text shapes when not editing those
shapes.

### Change Type

- [x] `patch` — Bug fix

### Test Plan

1. Create two text shapes
2. Edit one of them
3. The outline on the second shape should not be shown
This commit is contained in:
Steve Ruiz 2023-07-31 16:38:15 +01:00 committed by GitHub
parent 3a3f5b595e
commit b3186f5881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ export class TextShapeUtil extends ShapeUtil<TLTextShape> {
data-font={shape.props.font}
data-align={shape.props.align}
data-hastext={!isEmpty}
data-isediting={isEditing || isEditableFromHover}
data-isediting={isEditing}
data-textwrap={true}
style={{
fontSize: FONT_SIZES[shape.props.size],