Skip to content

Commit

Permalink
Fixed Align Left button not working.
Browse files Browse the repository at this point in the history
Quill's left align format requires `undefined` as an argument not a string `left`.
  • Loading branch information
SharePickle authored Dec 6, 2019
1 parent bc3baf5 commit 35393df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/richText/RichTextPropertyPane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export default class RichTextPropertyPane extends React.Component<IRichTextPrope
id="left-propertyPaneButton"
calloutProps={{ gapSpace: 0 }}>
<IconButton checked={this.state.formats!.align === undefined}
onClick={() => this.applyFormat('align', 'left')}
onClick={() => this.applyFormat('align', undefined)}
className={styles.propertyPaneButton}
aria-describedby="left-propertyPaneButton"
iconProps={{
Expand Down

0 comments on commit 35393df

Please sign in to comment.