Page MenuHomePhabricator

Cursor keeps jumping to the end in sitelink editing
Closed, ResolvedPublic1 Estimated Story Points

Description

  1. Open any item with a two-words sitelink, e.g. https://www.wikidata.org/wiki/Q3524984
  2. Click edit sitelinks and type something in the middle, e.g. "Hardie" after "Thomas"

I. Observed: after each and every keystroke, the cursor goes to the end of the text area, forcing me to click the back arrow to reach the point where I need to continue.
II. Expected: the cursor shouldn't move at all.

Event Timeline

Nemo_bis raised the priority of this task from to Needs Triage.
Nemo_bis updated the task description. (Show Details)
Nemo_bis subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Bene added a subscriber: SJu.
Bene subscribed.

Which browser (including version number) and os are you using?

Lydia_Pintscher set Security to None.
Lydia_Pintscher added a subscriber: thiemowmde.

Which browser (including version number) and os are you using?

I can reproduce with Chromium 43.0.2357.81 but not Firefox 38.0.5.

The issue comes from this line in jquery.wikibase.pagesuggester where we set the value of the input field. I'm not sure how long this bug exists but maybe it was introduced by this change.

Commenting out the line makes the issue disappear but I'm not sure if the line is useful for something. As far as I can see everything still works as expected when removing it.

Change 220630 had a related patch set uploaded (by Bene):
Don't override value in input field so that cursor doesn't jump

https://gerrit.wikimedia.org/r/220630

Change 220773 had a related patch set uploaded (by Thiemo Mättig (WMDE)):
Avoid setting values that do not change in pagesuggester

https://gerrit.wikimedia.org/r/220773

Change 220630 abandoned by Bene:
Don't override value in input field so that cursor doesn't jump

Reason:
In favour of Ib0299e5

https://gerrit.wikimedia.org/r/220630

Bene reassigned this task from Bene to thiemowmde.
Bene moved this task from Review to Done on the Wikidata-Sprint-2015-06-16 board.

Change 220773 merged by jenkins-bot:
Avoid setting values that do not change in pagesuggester

https://gerrit.wikimedia.org/r/220773

  NODES
Note 1
Project 9