GovTechSG / sgds-govtech-react

React components for SGDS
https://react.designsystem.tech.gov.sg/
MIT License
16 stars 6 forks source link

Combobox dropdown arrow not triggering dropdown #270

Open clye-cog opened 17 hours ago

clye-cog commented 17 hours ago

Prerequisites

Describe the issue

The arrow icon of the dropdown isn't table to be clicked to trigger the menu Reference: https://github.com/user-attachments/assets/f0448dee-7ca3-40db-9936-cebd0340c46c

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Chrome

Describe your frontend stack. What version of React and @govtechsg/sgds-react are you using? CSR or SSR?

NextJS, React, Typescript. sgds-react v 2.7.2

clukhei commented 12 hours ago

@clye-cog The icon isnt meant to be a button to click, it serves more as an indication. When menuList is populated the dropdown list will appear when input is clicked or focused. When dropdown list is empty menuList is configured not to appear.

I think this problem you faced is because of the bug logged in #271 and will be resolved once that is fixed.