nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - `Select` doesn't display the currently position while reopen

Open focus0802 opened this issue 2 months ago • 9 comments

HeroUI Version

2.8.5

Describe the bug

open the Select and pick one option on the bottom or somewhere else, while reopen the Select, it should display the current position of selected option whatever controllered or uncontrolled, but it always display the top of the list. I saw it works well on https://www.heroui.com/docs/components/select. Why?

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. https://www.heroui.com/docs/guide/installation, follow this guide.
  2. https://www.heroui.com/docs/components/select

Expected behavior

I expected that Select should display current selection while reopen.

Screenshots or Videos

https://github.com/user-attachments/assets/f785435a-2c2d-4c3b-b3f5-607bf363c5c0

Operating System Version

macOS

Browser

Chrome

focus0802 avatar Oct 08 '25 01:10 focus0802

ENG-2837

linear[bot] avatar Oct 08 '25 01:10 linear[bot]

Since it's not reproducible in docs, please share a minimal reproducible sandbox for us to investigate. Thanks.

wingkwong avatar Oct 08 '25 04:10 wingkwong

Since it's not reproducible in docs, please share a minimal reproducible sandbox for us to investigate. Thanks.

https://heroui.app/zgEaoy5

focus0802 avatar Oct 08 '25 07:10 focus0802

Hey, can you assign the task to me? I'm interested in solving this issue.

VaideshWaranR avatar Nov 06 '25 10:11 VaideshWaranR

@VaideshWaranR go ahead

wingkwong avatar Nov 06 '25 14:11 wingkwong

Hey @wingkwong I have issue in build the dev environment. Issue that I get when I excute pnpm build

Image

VaideshWaranR avatar Nov 06 '25 15:11 VaideshWaranR

you don't need build. simply run pnpm i and pnpm dev

wingkwong avatar Nov 07 '25 02:11 wingkwong

I tried pnpm dev this opens the story book server not the nextjs server. pnpm dev:docs open the nextjs server but i'm not able to access the components sections (in the website) to see the changes there.

VaideshWaranR avatar Nov 07 '25 04:11 VaideshWaranR

cd apps/docs first and run pnpm dev there

wingkwong avatar Nov 07 '25 07:11 wingkwong