diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2021-05-04 13:30:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 13:30:06 +0200 |
commit | 32850869d308d5e7c9bf3e3b4d483ea886d373ce (patch) | |
tree | a4b4a35554fd84c0c65f5a6d972d3bc12f32725d /ui/widgets | |
parent | 9380d2734e9f3674ca1fcf1ba5981c3c5a858576 (diff) | |
download | jquery-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.js | 2 |
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 ); } }, |