Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit: fix the space issue by using a ref for isEditing #3337

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

patosullivan
Copy link
Member

I'm not sure why the previous fix appeared to work. The event listeners weren't actually getting removed, so the issue persisted. Instead, we should keep isEditing in a ref and use that ref within the event listener, updating the ref when isEditing actually changes.

Fixes LAND-1681 (again).

Copy link
Member

@latter-bolden latter-bolden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm! Code and reasoning make sense, worked locally

@patosullivan patosullivan merged commit c158c80 into develop Mar 14, 2024
1 check passed
@patosullivan patosullivan deleted the po/editing-space-issue-again branch March 14, 2024 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants