useSuggest returns invalid position (pr706) #873
Labels
framework: react ⚛️
Any changes to packages which are exclusively used for react code bases.
status: confirmed 🟢
The bug has been tested and confirmed.
status: sponsored 💖
All issues and pull requests which have been requested from or created by sponsors.
type: bug 🪲
Something isn't working
Projects
Summary
I use a suggestor within the editor (
0.0.0-pr706.5
). When removing the character that triggers the suggestor, the view is already updated with the new content (i.e. the triggering character is gone) butuseSuggest
still returns the - now invalid position. This triggers the below error:Steps to reproduce
[Note: I used
pr706.4
in codesandbox because it currently doesn't handlepr706.5
(details). I locally reproduced the issue also withpr706.5
]Screen.Recording.2021-02-23.at.2.32.12.PM.mov
Expected results
useSuggest
doesn't return a match after the character was removed.The text was updated successfully, but these errors were encountered: