math-main-components 0.0.45 → 0.0.46
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 +2 -1
- package/dist/index.esm.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -137,7 +137,8 @@ styleInject(css_248z$m);
|
|
137
137
|
function Dialog({ data, text, onClose, onSubmit, children }) {
|
138
138
|
function onClick(event) {
|
139
139
|
event.preventDefault();
|
140
|
-
const
|
140
|
+
const element = event.target;
|
141
|
+
const id = element.id;
|
141
142
|
if (["dialog-backdrop", "cancel-button"].includes(id)) {
|
142
143
|
if (onClose)
|
143
144
|
onClose(event, data?.data);
|
package/dist/index.esm.js
CHANGED
@@ -129,7 +129,8 @@ styleInject(css_248z$m);
|
|
129
129
|
function Dialog({ data, text, onClose, onSubmit, children }) {
|
130
130
|
function onClick(event) {
|
131
131
|
event.preventDefault();
|
132
|
-
const
|
132
|
+
const element = event.target;
|
133
|
+
const id = element.id;
|
133
134
|
if (["dialog-backdrop", "cancel-button"].includes(id)) {
|
134
135
|
if (onClose)
|
135
136
|
onClose(event, data?.data);
|