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

Support bind:value for selectmenu #7823

Open
tbdrz opened this issue Aug 31, 2022 · 1 comment
Open

Support bind:value for selectmenu #7823

tbdrz opened this issue Aug 31, 2022 · 1 comment

Comments

@tbdrz
Copy link

tbdrz commented Aug 31, 2022

Describe the problem

When trying to use bind:value for the HTMLElement selectmenu (link), i get an invalid-binding error message: 'value' is not a valid binding on elements.

Describe the proposed solution

Add support for the selectmenu element

Alternatives considered

<script>
  let selected;
</script>

<selectmenu on:change={(e) => (selected = e.target.value)}>
  <option>Option 1</option>
  <option>Option 2</option>
  <option>Option 3</option>
</selectmenu>

Importance

nice to have

@jrmoynihan
Copy link

Might be a while for this one. I suspect the maintainers will wait until it lands in the HTML spec ("use the platform" is the mantra around Svelte).

So far, not much movement on implementation outside of the experimental flag in Chromium:
https://chromestatus.com/feature/5737365999976448

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

2 participants