Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

fix: Toolbar maximum update depth exceeded #271

Merged
merged 4 commits into from
Sep 7, 2020
Merged

Conversation

tommoor
Copy link
Member

@tommoor tommoor commented Sep 6, 2020

As I've still never been able to reproduce on demand it's difficult to know if this fixes the issue entirely, but moving the rendering to a more reactive approach based on ResizeObserver and separating the state of the menu size and position seems like it would uncouple everything that could possibly cause a render loop.

This PR also includes a fix for the toolbar being mispositioned when a selection spans multiple lines and the lower lines of content are shorter than lines above.

tentatively closes #208

@tommoor tommoor changed the title fix: Refactoring floating toolbar to hooks and ResizeObserver fix: Toolbar maximum update depth exceeded Sep 6, 2020
@tommoor tommoor marked this pull request as ready for review September 6, 2020 21:10
@tommoor tommoor merged commit c047aaf into develop Sep 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/issue-208 branch September 7, 2020 00:07
zanemcca added a commit to sunsama/rich-markdown-editor that referenced this pull request Jan 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: Maximum update depth exceeded
1 participant