-
-
Notifications
You must be signed in to change notification settings - Fork 827
Open
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
2.7.1
Current Behavior
When building a custom dropdown that accepts nested options, if no option has a selected attribute the last option is selected by default.
Expected Behavior
When no option has a selected attribute the first option should be selected.
Steps to Reproduce
Please have a look at https://codesandbox.io/s/codesandbox-stencil-forked-okptft (index.html and app-dropdown)
<app-dropdown>
<option value="1">item 1</option>
<option value="2">item 2</option>
<option value="3">item 3</option>
<option value="BAR">BAR</option>
</app-dropdown>
by default the dropdown shows "BAR" as selected, instead it should be "Item 1".
Code Reproduction URL
https://codesandbox.io/s/codesandbox-stencil-forked-okptft
Additional Information
No response
KevinCarnaille2
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil