Skip to content

Commit d5dd19b

Browse files
committed
feat: updated the Simple theme to v. 3.2.1.0
1 parent e552ade commit d5dd19b

4 files changed

Lines changed: 11 additions & 36 deletions

File tree

app/default-files/default-themes/simple/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.2.1.0] - 2026-01-06
4+
### Fixed
5+
- Fixed an issue where the search popup would not open if the input element was missing
6+
37
## [3.2.0.0] - 2025-11-04
48
### Added
59
- Added new variable fonts

app/default-files/default-themes/simple/assets/js/scripts.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,16 +456,18 @@ window.addEventListener('scroll', () => {
456456
// Load search input area
457457
const searchButton = document.querySelector('.js-search-btn');
458458
const searchOverlay = document.querySelector('.js-search-overlay');
459-
const searchInput = document.querySelector('input[type="search"]');
460459

461-
if (searchButton && searchOverlay && searchInput) {
460+
if (searchButton && searchOverlay) {
462461
searchButton.addEventListener('click', (event) => {
463462
event.stopPropagation();
464463
searchOverlay.classList.toggle('expanded');
465464

466465
if (searchOverlay.classList.contains('expanded')) {
467466
setTimeout(() => {
468-
searchInput.focus();
467+
const element = searchOverlay.querySelector('input, button');
468+
if (element) {
469+
element.focus();
470+
}
469471
}, 60);
470472
}
471473
});

0 commit comments

Comments
 (0)