Skip to content

Conversation

@emilia-friedberg
Copy link

Include the node.length in the getSafeCaretPosition function in order to solve IndexError that was arising out of an invalid range length in the instance where the state's value is longer than the length of the node in the ref.

@ashleyw
Copy link
Owner

ashleyw commented Nov 8, 2019

Hi Emilia,

Would it be possible to add a test case demonstrating the error?

Thanks!
— Ash

@emilia-friedberg
Copy link
Author

@ashleyw I added a test that I hope clarifies the error I was experiencing! Let me know if you have questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants