Topic: Editor formatting selection scrolls the page unexpectedly
Freya Jensen
free
asked 4 weeks ago
The editor sits below a long form. Choosing a style from its toolbar jumps the page instead of preserving the editing position.
Can default link navigation be prevented?
Mateusz Lazaru
staff
answered 4 weeks ago
A toolbar anchor can move the page through its default href behavior. Confirm whether the jump coincides with a hash change, then compare mouse selection with keyboard activation. Also check whether your application restores scroll position after a route update.
If the toolbar is customized, cancel default navigation only on the formatting action, leaving its formatting command intact. Please share the generated style-item markup and an example with enough content to reproduce the jump. We also need to know whether the editor selection is lost or only the surrounding page moves.
https://mdbootstrap.com/docs/react/plugins/wysiwyg-editor/
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB React
- MDB Version: MDB5 9.0.0
- Device: Laptop
- Browser: Firefox
- OS: macOS
- Provided sample code: No
- Provided link: No