Can't set position of cursor with mouse (only with keyboard) in form input when : -moz-user-select: none;
Categories
(Core :: DOM: Selection, defect)
Tracking
()
People
(Reporter: mickael.penhard, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 Steps to reproduce: <input type="text" style="-moz-user-select: none;"> Enter a value like "test" First bug : Can't set position of cursor with mouse, only with keyboard Go to first carac Then try to press delete keyCode 46 not keyCode 8 (2 times) Result : ts Actual results: Bug Expected results: input should work as expect
Comment 1•9 years ago
|
||
Successfully reproduce the bug in MAC OS X Firefox 42; Build ID :20151029151421; User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:42.0) Gecko/20100101 Firefox/42.0 Firefox 44.0a2; Build ID :20151208004011; User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:44.0) Gecko/20100101 Firefox/44.0 Firefox 43.0b8; Build ID :20151201152349; User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:43.0) Gecko/20100101 Firefox/43.0 Firefox 45.0a1; Build ID :20151208030212; User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Firefox/45.0
Hey all, looks like this is still a problem as of latest (57.0.4), I thought it was a recent change with the Quantum codebase but I must just not have noticed before. (I also confirmed it's an issue on at least Windows and Ubuntu, in addition the OP's OSX.) Anybody looking at this? Any timeline for a fix? For reference, Chrome and IE11 totally ignore user-select (prefixed or otherwise) for <input>. Edge respects the text selection restriction, but does let you click to position the cursor and of course doesn't have the wonky delete-key issue.
:hsinyi: I think this got fixed at some point. I tested in 77.0.1, just using "data:text/html,<input type="text" style="-moz-user-select: none;">" in the URL bar, and I don't see the weird forward-delete behavior anymore. If someone from the team can quickly test this out it could probably be closed.
Comment 4•4 years ago
|
||
(In reply to James B from comment #3)
:hsinyi: I think this got fixed at some point. I tested in 77.0.1, just using "data:text/html,<input type="text" style="-moz-user-select: none;">" in the URL bar, and I don't see the weird forward-delete behavior anymore. If someone from the team can quickly test this out it could probably be closed.
Thank you for getting back here.
As the original report comment 0, here were two issues: 1) Can't set position of cursor with mouse, only with keyboard 2) Weird "forward-deletion" behavior.
With Firefox nightly 79, I confirmed 2) forward-deletion issue was resolved. I closed the duplicate of bug 1455920. However, 1) is still valid. I changed the bug summary to reflect the issue.
Updated•4 years ago
|
Updated•2 years ago
|
Description
•