We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07cd106 commit bc2cc2cCopy full SHA for bc2cc2c
src/theme/Search/index.js
@@ -51,10 +51,15 @@ function getWithExpiry(key) {
51
52
53
function Search(props) {
54
+ var initialized = false;
55
+
56
useEffect(function onFirstMount() {
57
+ console.log("Mounted")
58
const searchLogo = document.querySelector('.redisearch-logo')
59
var lastQuery
60
61
+ initialized = true;
62
63
searchLogo.addEventListener('mousedown', (e) => {
64
e.preventDefault()
65
})
@@ -172,7 +177,7 @@ function Search(props) {
172
177
}
173
178
174
179
175
- })
180
+ }, [initialized])
176
181
182
if (props.inline) {
183
return <div id="redis-sitesearch" className="redis-sitesearch redis-sitesearch-inline">
0 commit comments