Skip to content

Commit 431dcd3

Browse files
committed
Merge pull request yuche#56 from martinlindhe/dropdown-tweaks
Dropdown: set transition fade-enter and fade-leave to 'height: 0;' so…
2 parents f13a697 + 1a97ded commit 431dcd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Alert.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
watch: {
5151
show(val) {
5252
if (this._timeout) clearTimeout(this._timeout)
53-
if (val && !!this.duration) {
53+
if (val && Boolean(this.duration)) {
5454
this._timeout = setTimeout(()=> this.show = false, this.duration)
5555
}
5656
}
@@ -64,6 +64,7 @@
6464
}
6565
.fade-enter,
6666
.fade-leave {
67+
height: 0;
6768
opacity: 0;
6869
}
6970
.alert.top {

0 commit comments

Comments
 (0)