Skip to content

fix: incorrect value in <select> element. #894

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 1 commit into from
Nov 29, 2024

Conversation

vhtmui
Copy link
Contributor

@vhtmui vhtmui commented Nov 29, 2024

Fix incorrect value in Select element #447

Description

The actual_slug computation in Controls.svelte was incorrectly handling the slug format, which led to incorrect values being set in the <select> element.

Changes

  • Modified the logic in line 20 to correctly determine the actual_slug based on whether "kit" is present in parts[1].
  • Updated the computation to use parts[1].includes('kit') ? 'kit' : 'svelte' to ensure the correct slug format.

Copy link

vercel bot commented Nov 29, 2024

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

A member of the Team first needs to authorize it.

@vhtmui vhtmui changed the title Fix incorrect value in <select> element. fix: incorrect value in <select> element. Nov 29, 2024
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!

@dummdidumm dummdidumm merged commit 8aa34c1 into sveltejs:main Nov 29, 2024
1 of 3 checks passed
@vhtmui vhtmui deleted the select-current-tutorial branch November 30, 2024 01:18
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.

2 participants