Browse Source

CDB: Fix list closing on reapply search filters

lviguier 4 months ago
parent
commit
d7fbdac0fb
1 changed files with 7 additions and 2 deletions
  1. 7 2
      hide/comp/cdb/Separator.hx

+ 7 - 2
hide/comp/cdb/Separator.hx

@@ -208,8 +208,13 @@ class Separator extends Component {
 
 		var lines = getLines();
 		for (l in lines) {
-			l.hide();
-			if (getLinesVisiblity())
+			var visible = getLinesVisiblity();
+			if (!visible) {
+				l.hide();
+				continue;
+			}
+
+			if (visible && (l.element == null || l.element.get(0).classList.contains("hidden")))
 				l.create();
 		}