Describe a bug.
Steps to reproduce:
- Implement onChange callback that throws an exception.
onChange: () => {
throw new Error();
}
-
Modify anywhere and dispatch onChange.
-
Throws an exception.
-
onChange can't be dispatched next time.
Expected behavior:
onChange is dispatched after onChange callback throws an exception
Editor.js version: 2.18.0
It seems that modificationObserver is disabled after onChange callback throws an exception.
It can be resolved by using try {} finally {} sentence.
Describe a bug.
Steps to reproduce:
Modify anywhere and dispatch onChange.
Throws an exception.
onChange can't be dispatched next time.
Expected behavior:
onChange is dispatched after onChange callback throws an exception
Editor.js version: 2.18.0
It seems that modificationObserver is disabled after onChange callback throws an exception.
It can be resolved by using try {} finally {} sentence.