algolia / algolia/algoliasearch-netlify

Multiple selectors

Open
#241 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
265
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I want to place the search box in the menu on the website. However, I have two version of the menu - one for desktop and one for mobile. I can't figure out how to initiate Algolia search in both of them. I tried using a class but that doesn't help. It is initiated only once for the desktop version and never shows in the mobile menu.

`selector: 'div.algolia-search'`

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named in the issue. Start by reproducing the behavior with two menu elements and selector `div.algolia-search`, then trace how Algolia search is initialized and verify that both desktop and mobile menus display a working search box.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.