Update OOUI to v0.30.3
[lhc/web/wiklou.git] / resources / lib / ooui / oojs-ui-windows.js
index f86aee1..d099e32 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * 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 ) {
 
@@ -2312,7 +2312,7 @@ OO.ui.Window.prototype.onFocusTrapFocused = function ( event ) {
                // 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' );
        }
 };
 
@@ -2395,7 +2395,7 @@ OO.ui.Window.prototype.setup = function ( data ) {
 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();
@@ -2421,7 +2421,6 @@ OO.ui.Window.prototype.hold = function ( data ) {
 
                // Blur the focused element
                if ( $focus.length ) {
-                       // eslint-disable-next-line jquery/no-event-shorthand
                        $focus[ 0 ].blur();
                }