Skip to content

Commit

Permalink
#1135: Richtext control, can not undo ordered lists (#1807)
Browse files Browse the repository at this point in the history
* #1135: fix keys for ordered list

* #1101: fix issue with adding link by typing in FilePicker "From a link" tab

* Revert "#1101: fix issue with adding link by typing in FilePicker "From a link" tab"

This reverts commit e2afed6.

Revert "#1101: fix issue with adding link by typing in FilePicker "From a link" tab"

This reverts commit e2afed6.
  • Loading branch information
Ateina authored Aug 10, 2024
1 parent 20d1787 commit a17a823
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 a17a823

Please sign in to comment.