]> source.dussan.org Git - jquery-ui.git/commit
Datepicker: Hide the UI on destroy
authorPorter Clevidence <116387727+porterclev@users.noreply.github.com>
Mon, 5 Aug 2024 17:30:53 +0000 (10:30 -0700)
committerGitHub <noreply@github.com>
Mon, 5 Aug 2024 17:30:53 +0000 (19:30 +0200)
commit02a6e6bcb004696b21324ef14c07374a56d7cd02
tree74b31f0f8bee8eaf38416ac0b5cc9378925ce43b
parenta0c5b12e8291e40cf43c61844d50a5f7fdfe021a
Datepicker: Hide the UI on destroy

When the datepicker UI is shown and then destroyed programmatically:
```js
$( "#datepicker" ).datepicker( "destroy" );
```
hide the datepicker UI without the need for an explicit user action.
Previously, in 1.12 the UI would not disappear immediately but only after the
first `mousedown`. In later 1.13 versions, the UI would not disappear at all.

Fixes gh-2178
Closes gh-2268
tests/unit/datepicker/methods.js
ui/widgets/datepicker.js