asyncapi / asyncapi-react

React component for rendering documentation from your specification in real-time in the browser. It also provides a WebComponent and bundle for Angular and Vue
https://asyncapi.github.io/asyncapi-react/
Apache License 2.0
167 stars 104 forks source link

bug: Irregularities in icon and text state while dropdown #1029

Closed Saumya40-codes closed 1 day ago

Saumya40-codes commented 5 days ago

Description

Currently in such dropdown menu components the icon and text doesn't remain consistent when state change (open to close and viceversa)

image

For instance here on clicking the '^' icon the dropdown will close but the text says otherwise (it remains the same)

image

https://github.com/asyncapi/asyncapi-react/assets/115284013/940953ca-eccd-4d8c-bd9f-f8c22de85155

Expected result

Both should remain in sync with each other.

If it's something that needs to be fixed, I'll to work on it!

github-actions[bot] commented 5 days ago

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.