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
pull/1783/head
Steve Ruiz 2023-07-31 16:38:15 +01:00 zatwierdzone przez GitHub
rodzic 3a3f5b595e
commit b3186f5881
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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],