medly / medly-components

🧩 Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.
https://medly.github.io/medly-components/
MIT License
79 stars 54 forks source link

bug: SingleSelect focus issue #718

Closed Bhusnar5044 closed 1 year ago

Bhusnar5044 commented 1 year ago

Describe the bug

when we select an option from the SingleSelect field, the focus stays there. If we Click outside of the filed or click on another field and press the arrow keys, it opens the option popup for both the SingleSelect field.

To Reproduce

Provide step-by-step instructions to reproduce the bug:

  1. Click on the field to select the option and click outside of the field or on another field
  2. press the down arrow key, It will open the option popup

Expected behavior

It should not open option popup when we click outside or on another field

Screenshots

image

Package versions

Additional context

Provide any additional information about the bug or the bug scenario.