fit-ui 2.16.3 → 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 -1
- 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
|
|
|
@@ -15081,6 +15081,12 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
15081
15081
|
defaultDate: null,
|
|
15082
15082
|
onChangeMonthYear: function(year, month, dp) // Fires when changing year/month but also when simply opening calendar widget
|
|
15083
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
|
+
|
|
15084
15090
|
if (open === true) // Remember which year and month the user navigated to
|
|
15085
15091
|
{
|
|
15086
15092
|
try
|
|
@@ -15128,6 +15134,11 @@ Fit.Controls.DatePicker = function(ctlId)
|
|
|
15128
15134
|
return false; // Do not display - wait for locale to load
|
|
15129
15135
|
}
|
|
15130
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
|
+
|
|
15131
15142
|
// Update settings in case they were changed
|
|
15132
15143
|
|
|
15133
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
|