From 3f3d918e992bb4af97140d6d969fcd0ab3366f8c Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 28 Jun 2019 21:46:11 +0100 Subject: [PATCH] DateTimeInputWidget: Avoid :input Sizzle selector This widget only creates tags so just search by name. Change-Id: I170f67127453f979a0bbdd45f0487a5d350a4d5a --- .../src/mediawiki.widgets.datetime/DateTimeInputWidget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js b/resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js index b53b58fd2e..0121f37777 100644 --- a/resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js +++ b/resources/src/mediawiki.widgets.datetime/DateTimeInputWidget.js @@ -630,7 +630,7 @@ e.keyCode === OO.ui.Keys.UP ? -1 : 1, 'wrap' ) ); } - if ( $field.is( ':input' ) ) { + if ( $field.is( 'input' ) ) { $field.trigger( 'select' ); } return false; @@ -652,7 +652,7 @@ if ( this.getValueAsDate() === null ) { this.setValue( this.formatter.getDefaultDate() ); } - if ( $field.is( ':input' ) ) { + if ( $field.is( 'input' ) ) { $field.trigger( 'select' ); } -- 2.20.1