mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
CollabTarget: Fix focus of authorList
Change-Id: I91e4fb75af6b65df9da2d8b2f7277e685d54d0f8
This commit is contained in:
parent
9c926903a0
commit
4b9ad322ea
|
@ -124,7 +124,11 @@
|
|||
surfaceModel.selectFirstContentOffset();
|
||||
// For new anon users, open the author list so they can set their name
|
||||
if ( isNewAuthor && !username ) {
|
||||
target.actionsToolbar.tools.authorList.onSelect();
|
||||
// Something (an animation?) steals focus during load, so wait a bit
|
||||
// before opening and focusing the authorList.
|
||||
setTimeout( function () {
|
||||
target.actionsToolbar.tools.authorList.onSelect();
|
||||
}, 500 );
|
||||
}
|
||||
} );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue