-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Duplicate Task Creation When Hitting Enter with Korean Input on Google Chrome #301
Comments
Unsure where this is originated. |
I was unable to reproduce this when copying the Korean text from the original comment into the task input and pressing enter. This may indicate the bug has something to do with the keyboard layout, not necessarily with Korean letters. @dpschen maybe we should add that and check if the issue is gone after that? |
I was able to reproduce. |
Thank you for your passionate technical support. The way to reproduce @kolaente 's issue is probably because the copied text is in a different cursor activation state. I guess the issue is reproduced only when directly inputting. @dpschen In my case, it is reproduced in both the overview and project list views. Is there anything you can check to help me with this issue? If you tell me where to set the debug point and create the task, I can check it ! (although my knowledge of the frontend is limited) |
My best guess right now is this has something to do with the multiline input (you can enter multiple lines of text and it will create a task for each line). If that's the case, using Intl.Segmenter as suggested by dpschen should fix it. I'll take a look. |
Here's where we split: It looks like that should work since AFAIK to properly use @dpschen do you have an idea how to debug this further? |
Maybe try out the following: assume the written text is in the users language (even if that’s not the case). For segmentation the result might still be better than splitting by space. Eg. afaik emojis shouldn’t make problems. If it doesn’t solve the problem I would reverse it. |
Description
Hello.
I am a user from South Korea.
When creating a task using Korean input and hitting enter, the task gets created multiple times.
This issue might also occur with other input methods similar to Korean, such as Chinese and Japanese.
However, moving the cursor more than once or using the "ADD" button to create the task does not result in this issue.
Testing in Safari browser showed normal behavior without any issues.
I am attaching a screenshot for reference.
ps) When a task is duplicated, one is created exactly as entered, and the other is created with the last character omitted.
Thank you.
Test:
Input Korean Text (title: "한글이 두번 입력되는 이슈 테스트")
![image](https://private-user-images.githubusercontent.com/8033320/354346751-5cb7ceed-4d24-4339-a7e0-be59ef020f06.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg1MjQsIm5iZiI6MTczODkzODIyNCwicGF0aCI6Ii84MDMzMzIwLzM1NDM0Njc1MS01Y2I3Y2VlZC00ZDI0LTQzMzktYTdlMC1iZTU5ZWYwMjBmMDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTQyMzQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWU3MzVlNTU2MjM0YjM3MDhlYmFkNTA2YTNlN2FmMzVlYzYyNjNjZDkyZTEyYjc5YmU0ZmYwYmJmMTJjZjBjNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.adFsi4WXpbYV6qafgPpwF3LkaY10z7AAeseGQC1HcIw)
Duplicate creation HTTP request
![image](https://private-user-images.githubusercontent.com/8033320/354346902-6299baba-7e71-4a15-84ca-db374da80028.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg1MjQsIm5iZiI6MTczODkzODIyNCwicGF0aCI6Ii84MDMzMzIwLzM1NDM0NjkwMi02Mjk5YmFiYS03ZTcxLTRhMTUtODRjYS1kYjM3NGRhODAwMjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTQyMzQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGRjNjljM2QwYjIzYjlhZWI2ZjM3ZmZiNGQ2ZmY5MjdhY2MyYmI4NTQ1OGYzYmRmNDY2ZjU0NDU4OGQ3YzRhZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.0yvSH0pHd-JPz13MKQEy8CcqSd0PHDu4g6Cca32Eegg)
![image](https://private-user-images.githubusercontent.com/8033320/354347300-d8f561ca-938f-4522-bbbd-f106a08bea5c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg1MjQsIm5iZiI6MTczODkzODIyNCwicGF0aCI6Ii84MDMzMzIwLzM1NDM0NzMwMC1kOGY1NjFjYS05MzhmLTQ1MjItYmJiZC1mMTA2YTA4YmVhNWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTQyMzQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmE0NzcyYjcwZGYwNzdhNDhkYjhlMDFhY2JmYWZmMWMwOTIzOGJkYjA0NDk3OTg2MWUwYWRjZWY5YWEyYzcyZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.VWNjSLXszOhUl4bd7sGY1TR1ilrwVYDFEi6mpJBTKAg)
Result
![image](https://private-user-images.githubusercontent.com/8033320/354347690-8a931a38-5cde-489b-9f0c-33ffe3921b23.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5Mzg1MjQsIm5iZiI6MTczODkzODIyNCwicGF0aCI6Ii84MDMzMzIwLzM1NDM0NzY5MC04YTkzMWEzOC01Y2RlLTQ4OWItOWYwYy0zM2ZmZTM5MjFiMjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTQyMzQ0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2U4OTg1YTgyZjllMTc2NzFiNzgxNzdkNGJjNzNhMmJlOThjMWYxZDQ5NGU0ZWUwYzVlM2IwOTQwYWFjODQ2ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.I4O-Q0oA-oCQMs35AZJv-wcLbO5rb_aZAZ_jnejfLcY)
Vikunja Version
v0.24.1
Browser and version
Google Chrome 127.0.6533.73 (arm64)
Can you reproduce the bug on the Vikunja demo site?
Yes
Screenshots
No response
The text was updated successfully, but these errors were encountered: