app/components/coco/app/elements/alert/alert.js in coveragebook_components-0.7.10 vs app/components/coco/app/elements/alert/alert.js in coveragebook_components-0.8.0.beta.1
- old
+ new
@@ -19,21 +19,22 @@
setTimeout(() => this.remove(), this.dismissDuration);
}
},
remove() {
+ this.$nextTick(() => this.$dispatch("alert:removed", { alert: this }));
this.$root.remove();
},
checkSingleLineWrap({ height }) {
- if (!this.forceMultiLine) {
+ this.forceMultiLine = false;
+ this.$nextTick(() => {
this.forceMultiLine = height > 24 && this.$options.singleLine;
- }
+ });
},
root: {
"x-options": '["dismissable", "singleLine"]',
- "x-show": "!dismissed",
":class": "{'force-multi-line': forceMultiLine}",
},
};
});