-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Description
Description
Uncaught runtime error when using suneditor-react.
Error Message:
ERROR Cannot read properties of null (reading 'nextElementSibling') TypeError: Cannot read properties of null (reading 'nextElementSibling') at HTMLDivElement.onKeyDown_wysiwyg (http://localhost:3000/static/js/vendors-node_modules_reactstrap_esm_Form_js-node_modules_reactstrap_esm_NavLink_js-node_modul-af9569.chunk.js:18724:80)
To Reproduce
Steps to reproduce the behavior:
- Render suneditor-react in a React component.
- Type content inside the editor:
<ul><li><span>Privacy Policy</span></li><li><span>Help Center</span></li><li><span>Hotline</span></li></ul>

- Press Ctrl+A (or Cmd+A on Mac) to select all content.
- Press Delete (or fn+Delete on Mac).
- Observe the console error.
Expected behavior
The editor should allow the deletion of all content without throwing an error.
Environment
- Suneditor-react version: 2.47.0
- Suneditor version: 3.6.1
- React version: 19.0.0
Desktop (please complete the following information):
- OS: MAC
- Browser: Chrome
Metadata
Metadata
Assignees
Labels
No labels
