Page MenuHomePhabricator

Clicking on an already-focused focusable node deactivates the surface (or removes the selection on surface where this is possible)
Closed, ResolvedPublic

Description

Clicking on a focusable node (e.g. image, template) a second time tries to remove focus from it.

In VE article editing this results in the surface being deactivated and the selection going grey.

In DiscussonTools this results in the selection be removed.

This is also makes it impossible to drag and drop and focusable node while it is already focused.

Expected

Clicking a second time should do nothing (unless done quickly as part of a double click).

Event Timeline

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

[VisualEditor/VisualEditor@master] Handle clicking on a focusable node that is already focused

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

Change 938248 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Handle clicking on a focusable node that is already focused

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

Change 943525 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c1420586c)

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

Change 943525 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (c1420586c)

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

EAkinloose subscribed.

This works as expected. With double click for focusable nodes working as expected.