Skip to content

Commit 5ed28d6

Browse files
author
Hesam Bahrami
authored
Hotfix/2.3.1 (#8)
Fixing the placeholder list minimum height issue which caused a visual flaw after moving one of its descendant list items outside of it.
1 parent ede4e13 commit 5ed28d6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nested-sort",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"author": "Hesam Bahrami (Genzo)",
55
"description": "A JavaScript library to create a nested list of elements",
66
"main": "dist/nested-sort.cjs.js",

src/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ class nestedSort {
329329
ul.remove();
330330
} else if (ul.classList.contains(this.classNames.placeholder)) {
331331
ul.classList.remove(this.classNames.placeholder);
332+
ul.style.minHeight = 'auto'
332333
ul.dataset.id = ul.parentNode.dataset.id
333334
}
334335
});

0 commit comments

Comments
 (0)