Skip to content

Commit 35393df

Browse files
authored
Fixed Align Left button not working.
Quill's left align format requires `undefined` as an argument not a string `left`.
1 parent bc3baf5 commit 35393df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/richText/RichTextPropertyPane.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export default class RichTextPropertyPane extends React.Component<IRichTextPrope
369369
id="left-propertyPaneButton"
370370
calloutProps={{ gapSpace: 0 }}>
371371
<IconButton checked={this.state.formats!.align === undefined}
372-
onClick={() => this.applyFormat('align', 'left')}
372+
onClick={() => this.applyFormat('align', undefined)}
373373
className={styles.propertyPaneButton}
374374
aria-describedby="left-propertyPaneButton"
375375
iconProps={{

0 commit comments

Comments
 (0)