From 32850869d308d5e7c9bf3e3b4d483ea886d373ce Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Tue, 4 May 2021 13:30:06 +0200 Subject: Datepicker: Make sure altField is treated as a CSS selector Closes gh-1954 --- ui/widgets/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index 441170c97..f03e075cd 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -1089,7 +1089,7 @@ $.extend( Datepicker.prototype, { altFormat = this._get( inst, "altFormat" ) || this._get( inst, "dateFormat" ); date = this._getDate( inst ); dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) ); - $( altField ).val( dateStr ); + $( document ).find( altField ).val( dateStr ); } }, -- cgit v1.2.3