@esportsplus/ui 0.42.0 → 0.42.1
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.
|
@@ -59,7 +59,7 @@ function deactivate(state) {
|
|
|
59
59
|
export default (attributes) => {
|
|
60
60
|
let state = reactive({
|
|
61
61
|
active: false,
|
|
62
|
-
messages: new Set,
|
|
62
|
+
messages: new Set(),
|
|
63
63
|
type: ''
|
|
64
64
|
});
|
|
65
65
|
const error = (messages, seconds = 0) => activate('error', messages, seconds, state);
|
|
@@ -113,7 +113,7 @@ export default (attributes) => {
|
|
|
113
113
|
|
|
114
114
|
<div
|
|
115
115
|
class='alert-close button --padding-300'
|
|
116
|
-
onclick='${deactivate}'
|
|
116
|
+
onclick='${() => deactivate(state)}'
|
|
117
117
|
${attributes.close}
|
|
118
118
|
>
|
|
119
119
|
<div class="icon" style='--size: 14px;'>
|
package/package.json
CHANGED
|
@@ -82,7 +82,7 @@ function deactivate(state: { active: boolean, messages: Set<Renderable<any>>, ty
|
|
|
82
82
|
export default (attributes: Attributes & { close?: Attributes, message?: Attributes }) => {
|
|
83
83
|
let state = reactive({
|
|
84
84
|
active: false,
|
|
85
|
-
messages: new Set as Set<Renderable<any>>,
|
|
85
|
+
messages: new Set() as Set<Renderable<any>>,
|
|
86
86
|
type: '' as Type
|
|
87
87
|
});
|
|
88
88
|
|
|
@@ -149,7 +149,7 @@ export default (attributes: Attributes & { close?: Attributes, message?: Attribu
|
|
|
149
149
|
|
|
150
150
|
<div
|
|
151
151
|
class='alert-close button --padding-300'
|
|
152
|
-
onclick='${deactivate}'
|
|
152
|
+
onclick='${() => deactivate(state)}'
|
|
153
153
|
${attributes.close}
|
|
154
154
|
>
|
|
155
155
|
<div class="icon" style='--size: 14px;'>
|