-
Notifications
You must be signed in to change notification settings - Fork 64
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
input diacritic character before mention #100
Comments
@phucdth12a are you moving the cursor into the middle of the first input and then inserting |
yes! after i choose one mention and moving cursor to before mention and typing diacritic character. |
@phucdth12a In my testing it appears as though the range of {26, 5} is correct. I tried using the example project and if I type in |
I test in source demo: and when mention @steven Zweier after spacing "Steven Zweier" => "Steven Zưeier" Change to vietnamese keyboard |
I've tried switching to Vietnamese keyboard and using the sample application but even after typing in the text provided the location of the mention is still appearing as accurate as far as I can tell. I've also tried adding the following test which is passing.
If you see something incorrect about the test above please let me know. Can you also verify that you are trying this on the most recently release of the library. |
I see the problem, so if the characters are selected by long pressing keys and choosing the character the library will calculate the fields correctly. This is why the test above is passing. However, if typing shortcuts are used (typing u and w resulting in ú) the information provided to |
I’ll continue looking into a fix for this but in the meantime I’ve opened a bug report for Apple to look into this. It looks like we don’t get the correct data being sent to the |
Apple has marked the issue as a duplicate. At the very least this is a known issue. Sadly I don’t have any insight into any additional information and am unable to find a way to hack around this. |
First input: "Một ngày đẹp trời @zeee"
-> mention is correct with range: {18, 5}
After i add string: "Một ngày thật là đẹp trời @zeee"
-> mention is not correct with range: {26, 5}
-> Mention is correct range: {25, 5}
If add diacritic character before mention this all old mention range not correct
The text was updated successfully, but these errors were encountered: