mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 09:43:30 +00:00
Merge "ReplyWidgetVisual: Replace deprecated selectLastContentOffset call"
This commit is contained in:
commit
264869a561
|
@ -157,7 +157,7 @@ ReplyWidgetVisual.prototype.focus = function () {
|
|||
setTimeout( function () {
|
||||
// Check surface still exists after timeout
|
||||
if ( targetWidget.getSurface() ) {
|
||||
targetWidget.getSurface().getModel().selectLastContentOffset();
|
||||
targetWidget.getSurface().getView().selectLastSelectableContentOffset();
|
||||
targetWidget.focus();
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue