Skip to content
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

Deletion error in text #102

Open
TheMorpheus407 opened this issue Jan 9, 2024 · 5 comments · May be fixed by Bootstrap-Academy/frontend#249
Open

Deletion error in text #102

TheMorpheus407 opened this issue Jan 9, 2024 · 5 comments · May be fixed by Bootstrap-Academy/frontend#249
Assignees
Labels
bug Something isn't working frontend

Comments

@TheMorpheus407
Copy link
Contributor

TheMorpheus407 commented Jan 9, 2024

Bootstrap Academy username

Morpheus

Contact Details

No response

What browsers are you seeing the problem on?

No response

What happened?

When creating a quiz the following happens in the text field:
Typing and then deleting a word (eg "hello world" and then deleting "world") results in the space before the deleted word also being deleted.
This needs to be prevented - why would we always want to delete the space?

Also: When clicking into a text field, it will always move the cursor to the very end. Which is again not intentional and does not provide benefit.
But I do have a feeling, this is connected to how the 2FA Input-Field works, so keep that in mind when testing!

@TheMorpheus407 TheMorpheus407 added the bug Something isn't working label Jan 9, 2024
@github-project-automation github-project-automation bot moved this to Triage/Draft in Tickets Jan 9, 2024
@TheMorpheus407 TheMorpheus407 moved this from Triage/Draft to Todo in Tickets Jan 9, 2024
@Defelo
Copy link
Member

Defelo commented Sep 2, 2024

In most cases this is actually intended behavior, because usually you don't want any leading or trailing whitespace. Is there something special about the quizzes (or any other feature) where it makes sense to have leading/trailing whitespace?

For the second point, I was not able to reproduce that. Maybe this has already been fixed?

@TheMorpheus407

@Lauritz-Tieste
Copy link
Collaborator

for reproduction:

2024-09-02-18-08-23.mp4

@Lauritz-Tieste
Copy link
Collaborator

Normal people just press the delete button several times to delete the space, which no longer exists at that time

@TheMorpheus407
Copy link
Contributor Author

For the generation, it was very weird, that deleting a space would delete 2 characters.

@Defelo
Copy link
Member

Defelo commented Sep 2, 2024

for reproduction:

2024-09-02-18-08-23.mp4

Ah, I see, thanks for the clarification! But that does not mean that we have to get rid of trimming entirely, right? We only have to make sure that trimming only happens when the user explicitly leaves the form field or submits the form, not while editing the text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

3 participants