Open SoraCent opened 9 months ago
I can't reproduce this behavior on neither my Mac nor iPhone. Are you sure it appeared on your iPad?
A quick duckduckgo search revealed that this might be caused by systems using \r which would explain Windows. I'll look into it.
Still can't wrap my head around it b/c the textarea is limited to 280 characters. Imho this is more a browser problem than a problem on our side. (Except the missing warning. But that should be fixed soon by another PR.)
I'm also not able to reproduce this on
Used following body for this:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
I was able to reproduce it on Windows 11 (Build 22621) in Firefox 118.0.2 as well as on Google Chrome 118.
On firefox i got redirected to this site:
On chrome nothing happened and the status just didn't change when trying to edit.
Used following body:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
B
According to the spec the text in textarea elements should use LF (\n
) for line breaks, and according to my local javascript console, this is the case, so I'm really confused on whats going on here
I also tested it again and still the Modal just gets closed and the Checkin isn't created.
I generated a Lorem Ipsum with 275 Characters and added 3 new Lines, the Counter showed 278 Characters.
I tested it on:
I used this imput:
Lorem ipsum dolor sit
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero
eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem i
I also found a Screenshot of the Old Error Message:
I was definitely affected by this problem at least twice in 2023 and 2024 and can confirm @SoraCent's bug description.
(Running Chrome on Android 13)
Describe the bug When there are Emojis, Newlines, or other Special Characters, the Frontend Character Counter displays the incorrect number of characters. Before, while attempting to save the checkin, Träwelling displayed an error message. Even though the Frontend Character Counter indicated that there were fewer than 280 characters, the error message said that just 280 characters are allowed. Data loss was avoided by the error message, but since it was deleted, all that had been written simply vanished after pressing the save button.
To Reproduce Steps to reproduce the behavior:
Expected behavior To avoid losing the entire input, the Frontend Character Counter should count Special characters as accurately as it does in the Backend, or else it should display the Error Message again.
Screenshots If applicable, add screenshots to help explain your problem.
I generated an Lorem Ipsum with 275 Chars and added some new Lines![grafik](https://github.com/Traewelling/traewelling/assets/46794893/b78bb50f-75ff-4834-b678-1ba8a2d77de0)
After pressing Check In! the Modal Closes, not creating the Checkin nor showing an Error Message and all I've written is gone![grafik](https://github.com/Traewelling/traewelling/assets/46794893/25827d6f-cedb-4491-8505-d219cbc97141)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Also on Ipad with IpadOS 17 and newset Safari version
Additional context Add any other context about the problem here.