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

blank option in multiple select #211

Open
duidae opened this issue Apr 14, 2022 · 0 comments
Open

blank option in multiple select #211

duidae opened this issue Apr 14, 2022 · 0 comments

Comments

@duidae
Copy link

duidae commented Apr 14, 2022

2022-04-14.4.50.32.mov
  • issue:
    • react-select的multiple select按清除後會殘留一個空白選項(一個空格字元)
  • cause:
    • 應該是為了讓<form> submit時可以在那個欄位推一個空的值出去,用以洗掉原有值的workaround,空白選項會讓<Select>產生<input type="hidden" value=' '>
  • solution:
    • 用sandbox看看v1.0.0在清空時<form>的submit行為是否正確
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

1 participant