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

chat editing: fix issue with inability to add spaces #3329

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

patosullivan
Copy link
Member

Fixes LAND-1681.

This was introduced by yesterday's fix in #3325. If we use useIsEditingMessage within useInvertedScrollInteraction, the isEditing value never updates and those listeners are still active.

So the space keydown was getting captured in useInvertedScrollInteraction when it shouldn't have been.

Fixes LAND-1681.

This was introduced by yesterday's fix in #3325. If we use `useIsEditingMessage` within `useInvertedScrollInteraction`, the `isEditing` value never updates and those listeners are still active.

So the space keydown was getting captured in `useInvertedScrollInteraction` when it shouldn't have been.
Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

lgtm

@patosullivan patosullivan merged commit ec4af36 into develop Mar 13, 2024
1 check failed
@patosullivan patosullivan deleted the po/land-1681-cant-add-spaces branch March 13, 2024 20:06
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