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

Backspace in a textarea at the beginning of a line deletes the contents of the previous line #27523

Open
jdm opened this issue Aug 6, 2020 · 2 comments · May be fixed by #27625
Open

Backspace in a textarea at the beginning of a line deletes the contents of the previous line #27523

jdm opened this issue Aug 6, 2020 · 2 comments · May be fixed by #27625
Labels
A-input C-assigned There is someone working on resolving the issue E-candidate-for-mentoring

Comments

@jdm
Copy link
Member

jdm commented Aug 6, 2020

<textrea>first line

</textarea>

If you position the cursor on the second line and press backspace, the contents of the first line disappear.

@jdm jdm added the A-input label Aug 6, 2020
@jdm jdm changed the title Backspace in a textare at the beginning of a line deletes the contents of the previous line Backspace in a textarea at the beginning of a line deletes the contents of the previous line Aug 6, 2020
@mucinoab
Copy link

@jdm Where would be a good place (file or folder) to start investigating this?

@jdm
Copy link
Member Author

jdm commented Aug 27, 2020

https://github.com/servo/servo/blob/master/components/script/textinput.rs is where the text input implementation lives (and is hooked up to https://github.com/servo/servo/blob/master/components/script/dom/htmltextareaelement.rs). It might be useful to reproduce this behaviour in a unit test in https://github.com/servo/servo/blob/master/tests/unit/script/textinput.rs, which can be run with ./mach test-unit -p script.

mucinoab added a commit to mucinoab/servo that referenced this issue Sep 6, 2020
… beginning of

a line deletes the contents of the previous line".
@jdm jdm added the C-assigned There is someone working on resolving the issue label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-input C-assigned There is someone working on resolving the issue E-candidate-for-mentoring
Projects
None yet
2 participants