aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-05-04 13:30:06 +0200
committerGitHub <noreply@github.com>2021-05-04 13:30:06 +0200
commit32850869d308d5e7c9bf3e3b4d483ea886d373ce (patch)
treea4b4a35554fd84c0c65f5a6d972d3bc12f32725d /ui/widgets
parent9380d2734e9f3674ca1fcf1ba5981c3c5a858576 (diff)
downloadjquery-ui-32850869d308d5e7c9bf3e3b4d483ea886d373ce.tar.gz
jquery-ui-32850869d308d5e7c9bf3e3b4d483ea886d373ce.zip
Datepicker: Make sure altField is treated as a CSS selector
Closes gh-1954
Diffstat (limited to 'ui/widgets')
-rw-r--r--ui/widgets/datepicker.js2
1 files changed, 1 insertions, 1 deletions
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 );
}
},