nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.94k stars 1.53k forks source link

[BUG] - Cannot Change Value after select item in Autocomplete #3213

Closed anungbisa4 closed 5 months ago

anungbisa4 commented 5 months ago

NextUI Version

2.4.0

Describe the bug

https://codesandbox.io/p/devbox/staging-firefly-zrszzv?file=%2FApp.jsx

every default items is like this const data = [ { value: "1", label: "1" }, { value: "2", label: "2" }, ]; or numbers always cannot be selected

but if const data = [ { value: "1", label: "1 test" }, { value: "2", label: "2 test" }, ]; that is correct and appropriate

That's very weird and should work for all the cases above

Your Example Website or App

https://codesandbox.io/p/devbox/staging-firefly-zrszzv?file=%2FApp.jsx

Steps to Reproduce the Bug or Issue

goto autocomplete component select item nothing happened

Expected behavior

should work for all the cases above and should be selected

Screenshots or Videos

No response

Operating System Version

mac os

Browser

Chrome

linear[bot] commented 5 months ago

ENG-983 [BUG] - Cannoct Change Value after select item in Autocomplete

srivatsa17 commented 5 months ago

This is duplicate of #2955