HomePhabricator
Diffusion Comm 048a6dfce1df

[Web] Added current cursor position to StateInput

Description

[Web] Added current cursor position to StateInput

Summary:
Added current cursor position in textarea input of chatInputBar to StateInput. It will be used in typeahead as we will need to track cursor position. Putting it in context provides us with extra benefit of saving cursor position when jumping between different chats and channels.
Code from this diff doesn't call anything them yet.

Test Plan:
Runned web. Everything works fine.
New property and function are visible in chat-input-bar.reat.js via this.props.stateInput.

Reviewers: tomek, kamil, atul

Reviewed By: tomek, atul

Subscribers: ashoat, abosh, atul, kamil, tomek

Differential Revision: https://phab.comm.dev/D5595

Details

Provenance
przemekAuthored on Nov 10 2022, 6:49 AM
Reviewer
tomek
Differential Revision
D5595: [Web] Added current cursor position to StateInput
Parents
rCOMM7e50ae41e8e6: [native] Fix getStateFromNavigatorRoute calls
Branches
Unknown
Tags
Unknown