Skip to content

Unable to select text in Preview panel #1305

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

Open
markhats opened this issue Feb 19, 2025 · 0 comments
Open

Unable to select text in Preview panel #1305

markhats opened this issue Feb 19, 2025 · 0 comments

Comments

@markhats
Copy link

markhats commented Feb 19, 2025

Description

When using the Preview panel, it doesn't seem possible for the user to select any of the text in it (for e.g. copy/paste etc.).

Reproduction

In demo app:
https://codesandbox.io/p/sandbox/github/algolia/autocomplete/tree/next/examples/preview-panel-in-modal

Try selecting some of the text in an item's description.

Steps

  1. Go to above CodeSandbox demo app.
  2. Search for e.g. "hat" using Algolia autocomplete box.
  3. In preview of default search result "Bioworld - Call of Duty....", try selecting some of the description text with the mouse.
  4. It doesn't select!

Expected behavior

Text in Preview pane should be selectable or at least optionally selectable. I have tried setting various css properties on the panel and the text itself e.g. user-select: all, but nothing seems to work.

Environment

  • OS: Mac
  • Browser: Chrome
  • Autocomplete version: 1.18.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant