-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When there are more than one Search
or Darkmode
components, only the first ones function properly
#1522
Comments
Hey, when you were testing this, were the component included multiple times (on both left sidebar and right sidebar) or just once? |
Ah yes, they were used in |
Search
and Darkmode
components created with DesktopOnly
to the right
does not functionSearch
and Darkmode
components, only the first ones function properly
Search
and Darkmode
components, only the first ones function properlySearch
or Darkmode
components, only the first ones function properly
I updated the issue title the bug description. Thank you for pointing out. |
Thanks. I suspected as much. We'll need to update the selectors from single select to a multi select. Currently it expects a singular |
This is currently a limitation, given that each components are considered a singleton. |
I remember this being mentioned before. Is this something we want to add to the documentation? Currently searching |
No need to document this. |
Describe the bug
When usingComponent.DesktopOnly
onComponent.Search
orComponent.Darkmode
to theright
, the components appear on the site but they do not function. (There may be other components that does not function as well, but I have not yet checked)Adding these to theleft
functions normally.When
Component.Search
orComponent.Darkmode
are used more than once, only the first ones functions normally. From the second one they do not function, despite being shown on the site.To Reproduce
Steps to reproduce the behavior:
quartz.layout.ts
.Expected behavior
When clicking search or darkmode components, they should show a search bar and change theme respectively.
Screenshots and Source
If applicable, add screenshots to help explain your problem.
You can help speed up fixing the problem by either
Desktop (please complete the following information):
node
Version: v22.9.0npm
version: v10.9.0Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: