Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom List Number Resets to 1 in Plate.js When Entering "5) A" #3713

Open
koorukuroo opened this issue Nov 4, 2024 · 0 comments
Open

Custom List Number Resets to 1 in Plate.js When Entering "5) A" #3713

koorukuroo opened this issue Nov 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@koorukuroo
Copy link

Description

When trying to start a numbered list with a specific number other than 1 using Plate.js, such as entering "5) A", it automatically converts to "1. A", ignoring the initial number input.

Reproduction URL

No response

Reproduction steps

1. When entering items in a standard sequence, like:
   
   1) A
   2) B

the numbering proceeds as expected.

  1. However, if I attempt to start the list with a custom number, such as:

    5) A
    

    the list automatically resets to "1. A", disregarding the "5)" input.

This seems to be an issue with the NumberedListPlugin, which defaults the list numbering to 1, even if a different number is specified initially.

Expected Behavior
When entering a list item with a specific starting number, such as "5) A", it should retain the custom number input (5), instead of automatically resetting to "1".



### Plate version

39.2.21

### Slate React version

0.103.0

### Screenshots

_No response_

### Logs

_No response_

### Browsers

_No response_
@koorukuroo koorukuroo added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant