facebookarchive / draft-js

A React framework for building text editors.
https://draftjs.org/
MIT License
22.56k stars 2.64k forks source link

Tab key does not indent if multiple items are selected from the list #3151

Open sudiparyal185 opened 2 years ago

sudiparyal185 commented 2 years ago

Do you want to request a feature or report a bug?

What is the current behavior?

After creating list in draft.js. Select multiple lines and hit tab. It does not indent at all. RichUtils.onTab works if only one line is selected. Screen Shot 2022-06-28 at 8 38 58 AM

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://jsfiddle.net/gmertk/e61z7nfa/.

What is the expected behavior?

It should indent properly if multiple lists are selected.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

macOS Monterey Version 12.4