basecamp / basecamp/trix

Attempting to un-indent multiple list items only un-indents the first item

Open
#908 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
20k
Forks
1.1k
Avg merge
3d 12h
Merged PRs (30d)
13

Description

Attempting to un-indent multiple list items in a bulleted or numbered list only un-indents the first item.
Related: #907

##### Steps to Reproduce

1. Create a list with multiple items.
2. Select all the items.
3. Press the un-indent button.

Here's a video demonstrating the issue:

https://user-images.githubusercontent.com/11605395/120842324-6724f500-c521-11eb-85f8-20d803fda034.mov

Here's the HTML before and after attempting to un-indent:

**Before**
```




  • Item 1



  • Item 2


```

**After (Result)**
```



Item 1




  • Item 2


```

**Expected result**
```



Item 1



Item 2

```
This is what _should_ happen:
Screen Shot 2021-06-04 at 10 45 36 AM

##### Details

* Trix version: 1.3.1
* Browser name and version: Chrome 91, Safari
* Operating system: macOS, Android, iOS

(This issue doesn't appear to be platform-specific)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.