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

[Select] [Clear button error with default selected value] #1777

Closed
vantran445 opened this issue Jul 11, 2023 · 0 comments · Fixed by #1806
Closed

[Select] [Clear button error with default selected value] #1777

vantran445 opened this issue Jul 11, 2023 · 0 comments · Fixed by #1806
Assignees
Milestone

Comments

@vantran445
Copy link

vantran445 commented Jul 11, 2023

Describe the bug
When select element has selected value, and also has hidden option and clear button. Then if we click the button, transition effects seems to work incorrectly.

Show your code

<!-- This triggers error  -->
<div class="p-10">
  <select data-te-select-init data-te-select-clear-button="true">
    <option value="" hidden></option>
    <option value="1">One</option>
    <option value="2" selected>Two</option>
  </select>
  <label data-te-select-label-ref>Select with default value</label>
</div>

<!-- To compare with no selected value  -->
<div class="p-10">
  <select data-te-select-init data-te-select-clear-button="true">
    <option value="" hidden selected></option>
    <option value="1">One</option>
    <option value="2">Two</option>
  </select>
  <label data-te-select-label-ref>Select without default value</label>
</div>

Desktop (please complete the following information):

  • OS: [Linux]
  • Browser [chrome]
  • Version [v1.0.0-beta2]
@iprzybysz iprzybysz added this to the v1.0.0-beta3 milestone Jul 13, 2023
@iprzybysz iprzybysz linked a pull request Jul 19, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants