From a17a82363c3f261c63a5477e5bc9f07bc1f2a705 Mon Sep 17 00:00:00 2001 From: Antanina Druzhkina Date: Sat, 10 Aug 2024 04:55:29 +0400 Subject: [PATCH] #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 e2afed6f847e94017b838ae2c6ff2898c607a7df. Revert "#1101: fix issue with adding link by typing in FilePicker "From a link" tab" This reverts commit e2afed6f847e94017b838ae2c6ff2898c607a7df. --- src/controls/richText/RichText.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/richText/RichText.tsx b/src/controls/richText/RichText.tsx index ec31a0f37..46e177037 100644 --- a/src/controls/richText/RichText.tsx +++ b/src/controls/richText/RichText.tsx @@ -695,7 +695,7 @@ export class RichText extends React.Component { private onChangeList = (_event: React.FormEvent, 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); }