Component's slot is selecting value from <select multiple>
See original GitHub issueVersion
2.6.11
Reproduction link
https://jsfiddle.net/sq589fnj/
Steps to reproduce
Check jsfiddle for default select tag and custom select component
What is expected?
It should not select any value by default as is the case for default: <select multiple>
What is actually happening?
It selects first value by default after slot is being ‘replaced’
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Using templates and slots - Web Components | MDN
Slots are identified by their name attribute, and allow you to define placeholders in your template that can be filled with any markup...
Read more >Shadow DOM slots, composition
Shadow DOM supports <slot> elements, that are automatically filled by the content from light DOM. Named slots. Let's see how slots work on...
Read more >Using <slot> in native <select> element - Stack Overflow
Yes, there a limitation: a <select> element accepts only <option> elements as children. As a consequence, you cannot use <slot> .
Read more >Composing Custom Elements With Slots And Named Slots
Learn about composition for Web Components using Shadow DOM and light DOM to allow the creation of elements that can take other elements....
Read more >ion-select: Select One or Multiple Value Boxes or Placeholders
Multiple Selection ... By adding the multiple attribute to select, users are able to select multiple options. When multiple options can be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
it’s
Remember to use the forum or the Discord chat to ask questions!
Ok got it working for the
multiple
part, butv-model
refuses to work: https://jsfiddle.net/g20mxdjf/1/