Page MenuHomePhabricator

Jump to the file before after pressing "remove image" in gallery edit window in visual editor
Open, Needs TriagePublicFeature

Description

current situation

  1. create a list of 10 files and feed it into gallery while using visual editor.
  2. now suppose you want to delete the 9th file. you press "remove image"
  3. it then jumps to the 1st file.

what should happen
jumps to the 8th file (the one before the removed target).

testing ground https://commons.wikimedia.org/w/index.php?title=Sandbox&oldid=919270949

Event Timeline

RoyZuo renamed this task from Jump to the file before after pressing "remove file" in gallery edit window in visual editor to Jump to the file before after pressing "remove image" in gallery edit window in visual editor.Sep 4 2024, 9:31 AM
RoyZuo updated the task description. (Show Details)
RoyZuo unsubscribed.

Change #1070554 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] MWGalleryDialog: Highlight item at closest index when removing an image

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

Change #1070554 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] MWGalleryDialog: Highlight item at closest index when removing an image

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