/*!
- * OOUI v0.30.2
+ * OOUI v0.30.3
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2019-01-23T01:14:20Z
+ * Date: 2019-02-21T10:57:07Z
*/
( function ( OO ) {
// properly trapped. It's not a *meaningful* focus, since it's just
// the content-div for the Window, but it's better than letting focus
// escape into the page.
- this.$content.focus();
+ this.$content.trigger( 'focus' );
}
};
OO.ui.Window.prototype.ready = function ( data ) {
var win = this;
- this.$content.focus();
+ this.$content.trigger( 'focus' );
return this.getReadyProcess( data ).execute().then( function () {
// Force redraw by asking the browser to measure the elements' widths
win.$element.addClass( 'oo-ui-window-ready' ).width();
// Blur the focused element
if ( $focus.length ) {
- // eslint-disable-next-line jquery/no-event-shorthand
$focus[ 0 ].blur();
}