When you create or start a poll from the "Start Discussion" composer, the poll option number does not reset back to it's original number when you remove a 3rd option and add a new one back in. In this state, you also cannot submit the poll to attach to the discussion.
Steps to Reproduce
Start a discussion.
Add a poll.
Add an option passed the default 2.
Delete that option.
Try adding another option again.
Take note as the answer # increases even after you deleted/removed the previous one.
Expected Behavior: When you launch the poll modal and want to add more options, you should be allowed to remove an option and add more options without the "Answer #" increasing instead of it being the actual field option number.
Actual Behavior: Poll options do not reset back to their original "Answer #" and the number just increases instead. In this state, you also cannot submit the poll as clicking the "Submit" button does not close the "Add Poll" modal.
Description
When you create or start a poll from the "Start Discussion" composer, the poll option number does not reset back to it's original number when you remove a 3rd option and add a new one back in. In this state, you also cannot submit the poll to attach to the discussion.
Steps to Reproduce
Expected Behavior: When you launch the poll modal and want to add more options, you should be allowed to remove an option and add more options without the "Answer #" increasing instead of it being the actual field option number.
Actual Behavior: Poll options do not reset back to their original "Answer #" and the number just increases instead. In this state, you also cannot submit the poll as clicking the "Submit" button does not close the "Add Poll" modal.
Flarum/Server/Client Information
Technical Details
Flarum Info
Log Files