Fix: focus method should be called on jQuery object not on ve.ui.TextInputWidget object itself.

Change-Id: I70b6553245b68e6de465eb3434bce4c4228f1764
This commit is contained in:
Inez Korczyński 2013-03-28 13:09:27 -07:00
parent 8d2ad5b312
commit 497b6947e5

View file

@ -58,7 +58,7 @@ ve.ui.InputLabelWidget.static.tagName = 'label';
*/
ve.ui.InputLabelWidget.prototype.onClick = function () {
if ( !this.disabled && this.input ) {
this.input.focus();
this.input.$.focus();
}
return false;
};