Page MenuHomePhabricator

v1 toolbar shows disabled edit tools on first load, then never again
Closed, ResolvedPublic

Description

Previously the edit toolbar wasn't shown until first focus, so the disabled tools were never visible.

image.png (675×398 px, 36 KB)

Since we introduced document mode for selections, it is no longer possible to change the selection back to null, so the tools never become disabled again during the edit.

The solution would be to initialise the selection to the first content offset, but deactivated so the keyboard doesn't show.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

That screenshot does also remind me that we should, perhaps, hide the toolbar while that modal is displayed? Having non-disabled tools while the modal is present would be weird as well, after all.

Change 527452 had a related patch set uploaded (by DLynch; owner: DLynch):
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: v1 of toolbar refresh

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

That screenshot does also remind me that we should, perhaps, hide the toolbar while that modal is displayed? Having non-disabled tools while the modal is present would be weird as well, after all.

Yes, that came up as well and was filed as T230806: Showing the v1 toolbar with anon edit warning could be confusing.

Esanders renamed this task from v2 toolbar shows disabled edit tools on first load, then never again to v1 toolbar shows disabled edit tools on first load, then never again.Aug 30 2019, 3:33 PM

Change 527452 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] MobileArticleTarget: v1 of toolbar refresh

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