Update selector to target input[type='search'] (#25712)

GitOrigin-RevId: 492bda0eb70dd821dbfa3dbf818cafc1ef8975eb
This commit is contained in:
Rebeka Dekany
2025-05-19 10:31:34 +02:00
committed by Copybot
parent c4c8f521ff
commit 957462b61c

View File

@@ -2,7 +2,7 @@ import _ from 'lodash'
import { formatWikiHit, searchWiki } from '../algolia-search/search-wiki'
function setupSearch(formEl) {
const inputEl = formEl.querySelector('input[type="text"]')
const inputEl = formEl.querySelector('input[type="search"]')
const resultsEl = formEl.querySelector('[data-ol-search-results]')
const wrapperEl = formEl.querySelector('[data-ol-search-results-wrapper]')
const noResultsEl = formEl.querySelector('[data-ol-search-no-results]')