mw.widgets.DateInputWidget: Highlight widget and open calendar on focus
authorPrateek Saxena <prtksxna@gmail.com>
Thu, 9 Mar 2017 10:53:12 +0000 (16:23 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Sat, 22 Apr 2017 08:33:17 +0000 (14:03 +0530)
Bug: T159987
Change-Id: I24327e1fe4b23de1b35833d3f23634094b5a2664

resources/src/mediawiki.widgets/mw.widgets.DateInputWidget.js

index dd2ce2a..50a84f8 100644 (file)
                } );
                this.$handle.on( {
                        click: this.onClick.bind( this ),
-                       keypress: this.onKeyPress.bind( this )
+                       keypress: this.onKeyPress.bind( this ),
+                       focus: this.activate.bind( this )
                } );
 
                // Initialization