fit-ui 2.11.4 → 2.11.5
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 +11 -2
- 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: 11, Patch:
|
|
685
|
+
VersionInfo: { Major: 2, Minor: 11, Patch: 5 } // 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
|
|
|
@@ -15023,13 +15023,22 @@ Fit.Controls.Dialog = function(controlId)
|
|
|
15023
15023
|
if (me === null)
|
|
15024
15024
|
return; // Dialog was disposed when a button was clicked
|
|
15025
15025
|
|
|
15026
|
+
var target = Fit.Events.GetTarget(e);
|
|
15027
|
+
|
|
15026
15028
|
// Do not focus first button when a (any) button within the button area was clicked.
|
|
15027
15029
|
// Button clicked might have been e.g. second button, which perhaps caused dialog to remain open,
|
|
15028
15030
|
// in which case we should not change focus. The button clicked could also have changed focus in
|
|
15029
15031
|
// which case we should not intervene. In case button did not change focus, it will remain focused
|
|
15030
15032
|
// of course since it was clicked.
|
|
15031
|
-
if (buttons !== null && Fit.Dom.Contained(buttons,
|
|
15033
|
+
if (buttons !== null && Fit.Dom.Contained(buttons, target))
|
|
15034
|
+
return;
|
|
15035
|
+
|
|
15036
|
+
// Do not focus first button if maximize button or dismiss button was clicked
|
|
15037
|
+
if ((cmdMaximize !== null && (target === cmdMaximize.GetDomElement() || Fit.Dom.Contained(cmdMaximize.GetDomElement(), target) === true)) ||
|
|
15038
|
+
(cmdDismiss !== null && (target === cmdDismiss.GetDomElement() || Fit.Dom.Contained(cmdDismiss.GetDomElement(), target) === true)))
|
|
15039
|
+
{
|
|
15032
15040
|
return;
|
|
15041
|
+
}
|
|
15033
15042
|
|
|
15034
15043
|
if (buttons !== null && (Fit.Dom.GetFocused() === null || Fit.Dom.Contained(dialog, Fit.Dom.GetFocused()) === false))
|
|
15035
15044
|
buttons.children[0].focus();
|