Skip to content

Commit

Permalink
Added fix for issue tempusdominus#139
Browse files Browse the repository at this point in the history
  • Loading branch information
ouija committed Oct 24, 2019
1 parent d318c59 commit 623218e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -7,7 +7,7 @@ This fork contains bugfixes and patches that haven't yet been merged into the [o
Changelog:
* Merged in [fix](https://github.com/ouija/tempusdominus-bootstrap-4/commit/58ddddaa1c7d7534af21f4fbc42180d48179d568) for [Issue #34](https://github.com/tempusdominus/bootstrap-4/issues/34) *(TypeError: Cannot read property 'isSame' of undefined error)*

* Merged in [fix](https://github.com/ouija/tempusdominus-bootstrap-4/commit/3ad0dd7d4da749a5b1933bb9e4043a91a1514bc6) for [Issue #287](https://github.com/tempusdominus/bootstrap-4/issues/287) / [#159](https://github.com/tempusdominus/bootstrap-4/issues/159) *(Keybind events not working after date selection)*
* Merged in [fix](https://github.com/ouija/tempusdominus-bootstrap-4/commit/d318c59ce191b9d09c71fc809e990afce17ec335) for [Issue #287](https://github.com/tempusdominus/bootstrap-4/issues/287) / [#159](https://github.com/tempusdominus/bootstrap-4/issues/159) *(Keybind events not working after date selection)*

# Version 5
This is the Bootstrap 4 component of the new Version 5. This is a "scorched earth" version and there are **a lot** of breaking changes.
Expand Down
7 changes: 6 additions & 1 deletion build/js/tempusdominus-bootstrap-4.js
Expand Up @@ -2766,7 +2766,12 @@ var TempusDominusBootstrap4 = function ($) {
if (!config._options.allowInputToggle) {
return;
}
TempusDominusBootstrap4._jQueryInterface.call($target, 'show', event);
setTimeout(function() {
if (!$('.datepicker').is(':visible')) {
TempusDominusBootstrap4._jQueryInterface.call($target, 'show', event);
}
},100);

});

$.fn[DateTimePicker.NAME] = TempusDominusBootstrap4._jQueryInterface;
Expand Down

0 comments on commit 623218e

Please sign in to comment.