Skip to content

Commit

Permalink
pnp#1135: fix keys for ordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
Ateina committed Apr 17, 2024
1 parent 259ef80 commit e8324af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/richText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ export class RichText extends React.Component<IRichTextProps, IRichTextState> {
private onChangeList = (_event: React.FormEvent<HTMLDivElement>, item?: IDropdownOption, _index?: number): void => {
// if we're already in list mode, toggle off
const key = item.key;
const newAlignValue = (key === 'bullet' && this.state.formats.list === 'bullet') || (key === 'numbered' && this.state.formats.list === 'numbered') ? false : key;
const newAlignValue = (key === 'bullet' && this.state.formats.list === 'bullet') || (key === 'ordered' && this.state.formats.list === 'ordered') ? false : key;
this.applyFormat("list", newAlignValue);
}

Expand Down

0 comments on commit e8324af

Please sign in to comment.