Skip to content
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

cannot click the text part of an option in SelectField with an option slot #510

Closed
Ennoriel opened this issue Nov 3, 2024 · 2 comments · Fixed by #512
Closed

cannot click the text part of an option in SelectField with an option slot #510

Ennoriel opened this issue Nov 3, 2024 · 2 comments · Fixed by #512

Comments

@Ennoriel
Copy link

Ennoriel commented Nov 3, 2024

On the SelectField documentation page, the first example with an option slot isn't working properly when clicking on the text part of an option.

I've been diging a bit on why, the div seems to be the culprit but I don't understand why. There's no pointer-events: none css attribute that would explain the behavior.

@techniq
Copy link
Owner

techniq commented Nov 3, 2024

Hey @Ennoriel, great call out. The issue stems from these examples using

<svelte:fragment slot="option" ... >

vs

<div slot="option" ... >

and not being properly handled in SelectListOptions.

@techniq
Copy link
Owner

techniq commented Nov 3, 2024

I have a PR fix but need to vet it a little more before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants