Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 6862ed1

Browse files
committed
fix styles not getting updated
1 parent 8385760 commit 6862ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class RNDraftView extends Component {
5050
} = this.props;
5151
const { data } = event.nativeEvent;
5252
const { blockType, styles, editorState, isMounted } = JSON.parse(data);
53+
onStyleChanged(styles ? styles.split(",") : []);
5354
if (blockType) onBlockTypeChanged(blockType);
54-
if (styles) onStyleChanged(styles ? styles.split(",") : []);
5555
if (editorState) this.setState({ editorState });
5656
if (isMounted) this.widgetMounted();
5757
};

0 commit comments

Comments
 (0)