Skip to content

fix: select enabled option with null value when it matches bound value #9550

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

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

theodorejb
Copy link
Contributor

Resolves #9545

Also corrected misspellings and significantly streamlined the select binding code.

This does not address #9517. For that to work it seems like some kind of hook which runs after options are removed from the DOM will be necessary. I'm not yet familiar enough with Svelte 5 internals to know how best to implement this.

Copy link

changeset-bot bot commented Nov 20, 2023

⚠️ No Changeset found

Latest commit: 5e9a205

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Nov 20, 2023

@theodorejb is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@theodorejb theodorejb force-pushed the select-null-value-binding branch from ce5d466 to 5e9a205 Compare November 20, 2023 16:02
Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for looking into this! I'm giving you the title of "Svelte select expert" due to all the bugs you discovered and fixes you made in that area 😄

@dummdidumm dummdidumm merged commit c011db1 into sveltejs:main Nov 21, 2023
@theodorejb theodorejb deleted the select-null-value-binding branch November 21, 2023 14:04
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

Successfully merging this pull request may close these issues.

Svelte 5: select binding doesn't work for null option value
2 participants