math-main-components 0.0.64 → 0.0.65
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/index.cjs.js +3 -1
- package/dist/index.esm.js +3 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -138,11 +138,13 @@ function Dialog({ data, text, onClose, onSubmit, children }) {
|
|
138
138
|
event.preventDefault();
|
139
139
|
const element = event.target;
|
140
140
|
const id = element.id;
|
141
|
-
console.log(id);
|
142
141
|
if (["dialog-backdrop", "cancel-button"].includes(id)) {
|
143
142
|
if (onClose)
|
144
143
|
onClose(event, data?.data);
|
145
144
|
}
|
145
|
+
else {
|
146
|
+
element.click();
|
147
|
+
}
|
146
148
|
}
|
147
149
|
return (React__default["default"].createElement("div", { id: "dialog-backdrop", className: `${styles$m.container} ${data?.isActive ? styles$m.active : styles$m.disabled}`, onClick: onClick },
|
148
150
|
React__default["default"].createElement("div", { className: styles$m.dialog_window },
|
package/dist/index.esm.js
CHANGED
@@ -130,11 +130,13 @@ function Dialog({ data, text, onClose, onSubmit, children }) {
|
|
130
130
|
event.preventDefault();
|
131
131
|
const element = event.target;
|
132
132
|
const id = element.id;
|
133
|
-
console.log(id);
|
134
133
|
if (["dialog-backdrop", "cancel-button"].includes(id)) {
|
135
134
|
if (onClose)
|
136
135
|
onClose(event, data?.data);
|
137
136
|
}
|
137
|
+
else {
|
138
|
+
element.click();
|
139
|
+
}
|
138
140
|
}
|
139
141
|
return (React.createElement("div", { id: "dialog-backdrop", className: `${styles$m.container} ${data?.isActive ? styles$m.active : styles$m.disabled}`, onClick: onClick },
|
140
142
|
React.createElement("div", { className: styles$m.dialog_window },
|