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

SearchBox: clear/close icon not hiding when we manually clear the state value. #730

Closed Bhusnar5044 closed 1 year ago

Bhusnar5044 commented 1 year ago

Describe the bug

The searchBox clear/close icon is not hiding when we manually clear the state value.

To Reproduce

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

  1. Go to SearchBox
  2. add state value for search box;
  3. clear the value based on some condition
  4. You can check the clear/close icon is not going away.

Expected behavior

the clear/close icon should show/hide based on state value.

Screenshots

If applicable, provide screenshots to explain the bug.

Package versions