баг-фикс 30/34

This commit is contained in:
Zuev committed 2026-07-19 14:40:43 +03:00
1 parent 3d798c13e3
commit bc0e1ab1b4
172 files changed
+13431 -2910

No files matched your search

+3 -7
View File
@@ -15,7 +15,7 @@ export class CustomSelect {
this.layerParent = this.originalSelect.closest('.settings-card, .card');
// Hide original but keep it accessible for form submissions and JS
this.originalSelect.style.display = 'none';
this.originalSelect.hidden = true;
// Bind methods
this.handleTriggerClick = this.handleTriggerClick.bind(this);
@@ -114,11 +114,7 @@ export class CustomSelect {
items.forEach(item => {
if (item.classList.contains('placeholder-item')) return;
const text = item.textContent.toLowerCase();
if (text.includes(query)) {
item.style.display = '';
} else {
item.style.display = 'none';
}
item.hidden = !text.includes(query);
});
});
searchLi.appendChild(searchInput);
@@ -208,7 +204,7 @@ export class CustomSelect {
const items = this.menu.querySelectorAll('.custom-select-item');
items.forEach(item => {
if (!item.classList.contains('placeholder-item')) {
item.style.display = '';
item.hidden = false;
}
});
setTimeout(() => {