баг-фикс 30/34
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user