Skip to content

Commit a17a823

Browse files
authored
#1135: Richtext control, can not undo ordered lists (#1807)
* #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.
1 parent 20d1787 commit a17a823

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/controls/richText/RichText.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ export class RichText extends React.Component<IRichTextProps, IRichTextState> {
695695
private onChangeList = (_event: React.FormEvent<HTMLDivElement>, item?: IDropdownOption, _index?: number): void => {
696696
// if we're already in list mode, toggle off
697697
const key = item.key;
698-
const newAlignValue = (key === 'bullet' && this.state.formats.list === 'bullet') || (key === 'numbered' && this.state.formats.list === 'numbered') ? false : key;
698+
const newAlignValue = (key === 'bullet' && this.state.formats.list === 'bullet') || (key === 'ordered' && this.state.formats.list === 'ordered') ? false : key;
699699
this.applyFormat("list", newAlignValue);
700700
}
701701

0 commit comments

Comments
 (0)