Skip to content

Commit 08e780c

Browse files
author
Marcin Łuczak
committed
Release 1.9.0
1 parent a7429bb commit 08e780c

File tree

16 files changed

+239
-84
lines changed

16 files changed

+239
-84
lines changed

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MDB 5 Vue
22

3-
Version: FREE 1.8.0
3+
Version: FREE 1.9.0
44

55
Documentation:
66
https://mdbootstrap.com/docs/b5/vue/

css/mdb.dark.rtl.min.css

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/mdb.rtl.min.css

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/mdb.common.js

Lines changed: 127 additions & 66 deletions
Large diffs are not rendered by default.

js/mdb.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/mdb.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.navbar-collapse.collapsing{height:""}

js/mdb.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/mdb.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-vue-ui-kit",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"main": "js/mdb.umd.min.js",
55
"repository": "https://github.com/mdbootstrap/mdb-vue-ui-kit.git",
66
"author": "MDBootstrap",

src/components/free/components/MDBCollapse.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export default {
118118
const isActive = ref(props.modelValue);
119119
watchEffect(() => {
120120
isActive.value = props.modelValue;
121+
121122
if (accordionState) {
122123
manageAccordion();
123124
}
@@ -178,22 +179,25 @@ export default {
178179
el.style.height = "0";
179180
};
180181
const enter = (el) => {
181-
el.style.height = `${getContentHeight()}px`;
182+
el.style.height = collapse.value.scrollHeight + "px";
182183
};
183184
184185
const afterEnter = (el) => {
185186
if (!el.classList.contains("show")) {
186187
el.classList.add("show");
187188
}
189+
el.style.height = "";
188190
};
189191
190192
const beforeLeave = (el) => {
191193
if (!el.style.height) {
192-
el.style.height = `${el.offsetHeight}px`;
194+
el.classList.add("show");
195+
el.style.height = collapse.value.scrollHeight + "px";
196+
console.log(el.style.height);
193197
}
194198
};
195199
const leave = (el) => {
196-
el.style.height = "0";
200+
el.style.height = "0px";
197201
};
198202
199203
const afterLeave = (el) => {
@@ -263,6 +267,7 @@ export default {
263267
});
264268
265269
return {
270+
navbarFlexWrapValue,
266271
collapse,
267272
className,
268273
isActive,
@@ -278,3 +283,9 @@ export default {
278283
},
279284
};
280285
</script>
286+
287+
<style>
288+
.navbar-collapse.collapsing {
289+
height: "";
290+
}
291+
</style>

0 commit comments

Comments
 (0)