@budibase/bbui 3.4.5 → 3.4.7
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/bbui.mjs +1 -2
- package/package.json +2 -2
- package/src/Actions/click_outside.ts +4 -1
package/dist/bbui.mjs
CHANGED
|
@@ -3154,8 +3154,7 @@ const handleClick = (f) => {
|
|
|
3154
3154
|
}, handleMouseDown = (f) => {
|
|
3155
3155
|
f.button === 0 && (candidateTarget = f.target, document.removeEventListener("click", handleMouseUp), document.addEventListener("click", handleMouseUp, !0));
|
|
3156
3156
|
}, handleBlur = () => {
|
|
3157
|
-
|
|
3158
|
-
((f = document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && handleClick(
|
|
3157
|
+
document.activeElement && ["IFRAME", "BODY"].includes(document.activeElement.tagName) && handleClick(
|
|
3159
3158
|
new MouseEvent("click", { relatedTarget: document.activeElement })
|
|
3160
3159
|
);
|
|
3161
3160
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/bbui",
|
|
3
3
|
"description": "A UI solution used in the different Budibase projects.",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.7",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"svelte": "src/index.ts",
|
|
7
7
|
"module": "dist/bbui.mjs",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "8b7e234e9da5237a393084a101bb7e6fcdbd97ce"
|
|
103
103
|
}
|
|
@@ -93,7 +93,10 @@ const handleMouseDown = (e: MouseEvent) => {
|
|
|
93
93
|
|
|
94
94
|
// Handle iframe clicks by detecting a loss of focus on the main window
|
|
95
95
|
const handleBlur = () => {
|
|
96
|
-
if (
|
|
96
|
+
if (
|
|
97
|
+
document.activeElement &&
|
|
98
|
+
["IFRAME", "BODY"].includes(document.activeElement.tagName)
|
|
99
|
+
) {
|
|
97
100
|
handleClick(
|
|
98
101
|
new MouseEvent("click", { relatedTarget: document.activeElement })
|
|
99
102
|
)
|