Skip to content

Commit bcfec13

Browse files
reset results on close
1 parent 1bfefe4 commit bcfec13

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/css/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,18 +688,18 @@ input:focus + .inputBorder, .expand:focus .inputBorder {
688688
color: var(--color);
689689
}
690690

691-
.close-icon {
691+
.searchCloseBtn {
692692
position: absolute;
693693
right: 10px;
694694
top: 50%;
695695
transform: translateY(-50%);
696696
cursor: default;
697-
font-size: 18px;
697+
font-size: 20px;
698698
color: #ccc;
699699
transition: color 0.2s ease;
700700
}
701701

702-
.close-icon:hover {
702+
.searchCloseBtn:hover {
703703
color: #fff;
704704
}
705705

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<div id="searchContainer">
2424
<input type="text" id="searchInput" placeholder="Search...">
25-
<span id="closeSearch" class="close-icon">&times;</span>
25+
<span id="closeSearch" class="searchCloseBtn">&times;</span>
2626
</div>
2727

2828
<!-- speed dial content injected here -->

src/js/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ function hideModals() {
10331033
searchInput.value = '';
10341034
searchInput.blur();
10351035
searchContainer.classList.remove('active');
1036+
filterDials('');
10361037
}
10371038

10381039
function modalShowEffect(contentEl, modalEl) {
@@ -2443,6 +2444,7 @@ document.getElementById('closeSearch').addEventListener('click', () => {
24432444

24442445
searchInput.value = ''; // Clear the search input
24452446
searchContainer.classList.remove('active'); // Hide the search container
2447+
filterDials('');
24462448
});
24472449

24482450

0 commit comments

Comments
 (0)