Ionaru / Ionaru/easy-markdown-editor

Text editor does not respond to form reset events.

Open
#559 0 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A when a textarea is in a form, and the form is reseted, then the textarea should reset to its initial value.

This does not occur with EasyMDE.

**To Reproduce**
Steps to reproduce the behavior:
1. https://stackblitz.com/edit/easymde-tfreno/?file=index.html
2. Click the second form reset, note that it resets to it's initial state.
3. Click the first form reset, note that it does not reset.

**Expected behavior**
EasyMDE textareas within a form should respond to reset events.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Version information**
- OS: [e.g. Windows, MacOS]
- Browser: [e.g. Chrome 72]
- EasyMDE version: [e.g. 2.5.1]

**Additional context**
This issue https://github.com/Ionaru/easy-markdown-editor/issues/558 also relates to reset events, but these are not duplicates.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.