diff --git a/src/components/panel/Panel.css b/src/components/panel/Panel.css
index 37cfe5374..662537c05 100644
--- a/src/components/panel/Panel.css
+++ b/src/components/panel/Panel.css
@@ -13,11 +13,15 @@
width: 1.25em;
line-height: 1.25em;
text-align: center;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -o-user-select: none;
+ user-select: none;
}
.p-panel .p-panel-titlebar-icon span {
line-height: inherit;
- margin-top: -1px;
}
.p-panel .p-panel-content {
@@ -32,17 +36,22 @@
text-align:left;
}
-.p-panel-content-wrapper-collapsed {
- overflow: hidden;
+.p-panel-content-wrapper-enter,
+.p-panel-content-wrapper-leave-to {
max-height: 0;
+}
+
+.p-panel-content-wrapper-enter-to,
+.p-panel-content-wrapper-leave {
+ max-height: 1000px;
+}
+
+.p-panel-content-wrapper-leave-active {
+ overflow: hidden;
transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}
-.p-panel-content-wrapper-expanded {
- max-height: 1000px;
- transition: max-height 1s ease-in-out;
-}
-
-.p-panel-content-wrapper-expanding {
+.p-panel-content-wrapper-enter-active {
overflow: hidden;
+ transition: max-height 1s ease-in-out;
}
\ No newline at end of file
diff --git a/src/components/panel/Panel.vue b/src/components/panel/Panel.vue
index 17b52170e..9c9d6623a 100644
--- a/src/components/panel/Panel.vue
+++ b/src/components/panel/Panel.vue
@@ -4,12 +4,17 @@