fit-ui 2.16.2 → 2.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Fit.UI.js +12 -4
- package/dist/Fit.UI.min.js +1 -1
- package/package.json +1 -1
package/dist/Fit.UI.js
CHANGED
|
@@ -682,7 +682,7 @@ Fit._internal =
|
|
|
682
682
|
{
|
|
683
683
|
Core:
|
|
684
684
|
{
|
|
685
|
-
VersionInfo: { Major: 2, Minor: 16, Patch:
|
|
685
|
+
VersionInfo: { Major: 2, Minor: 16, Patch: 4 } // Do NOT modify format - version numbers are programmatically changed when releasing new versions - MUST be on a separate line!
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
|
|
@@ -15041,9 +15041,6 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
15041
15041
|
|
|
15042
15042
|
Fit.Loader.ExecuteScript(Fit.GetUrl() + "/Resources/JqueryUI-1.11.4.custom/external/jquery/jquery.js?cacheKey=" + Fit.GetVersion().Version, function(src)
|
|
15043
15043
|
{
|
|
15044
|
-
if (me === null)
|
|
15045
|
-
return; // Control was disposed while waiting for jQuery to load
|
|
15046
|
-
|
|
15047
15044
|
jquery = $;
|
|
15048
15045
|
Fit._internal.Controls.DatePicker.jQuery = $; // jQuery instance is shared between multiple instances of DatePicker
|
|
15049
15046
|
$.noConflict(true);
|
|
@@ -15084,6 +15081,12 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
15084
15081
|
defaultDate: null,
|
|
15085
15082
|
onChangeMonthYear: function(year, month, dp) // Fires when changing year/month but also when simply opening calendar widget
|
|
15086
15083
|
{
|
|
15084
|
+
// Retain focus when changing month or year using calendar
|
|
15085
|
+
// widget, which causes its DOM to be removed and replaced.
|
|
15086
|
+
// Focus is later returned to DatePicker, but not in time for
|
|
15087
|
+
// OnFocusOut. Related issue: https://github.com/Jemt/Fit.UI/issues/194
|
|
15088
|
+
input.focus(); // Do not use Focused(true) as it will not re-focus input, since control is already considered focused.
|
|
15089
|
+
|
|
15087
15090
|
if (open === true) // Remember which year and month the user navigated to
|
|
15088
15091
|
{
|
|
15089
15092
|
try
|
|
@@ -15131,6 +15134,11 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
15131
15134
|
return false; // Do not display - wait for locale to load
|
|
15132
15135
|
}
|
|
15133
15136
|
|
|
15137
|
+
// Retain focus when interacting with calendar widget.
|
|
15138
|
+
// Focus is later returned to DatePicker, but not in time for
|
|
15139
|
+
// OnFocusOut. Related issue: https://github.com/Jemt/Fit.UI/issues/194
|
|
15140
|
+
jquery(dp.dpDiv).attr("tabindex", "-1");
|
|
15141
|
+
|
|
15134
15142
|
// Update settings in case they were changed
|
|
15135
15143
|
|
|
15136
15144
|
var val = me.Value(); // Always returns value in the YYYY-MM-DD[ hh:mm] format, but returns an empty string if value entered is invalid
|