1uphealth / fhir-react

FHIR React Component Library
MIT License
99 stars 30 forks source link

PATIENTAPP-99 Fix bug while opening the Accordion (click on single resource triggered multiple Accordions to open) #302

Closed michal-maksajda closed 2 years ago

michal-maksajda commented 2 years ago

Issue: PATIENTAPP-99


PR Checklist

Why are these changes needed?

The changes are needed due to the bug with opening the Accordion - when the user clicked on a single Accordion, all of the resources on the chosen page were triggered to open.

What changed?

Currently, each of rendered Accordion components has a unique id of format accordion-type-{resource_type}-{number}, where resource_type is replaced by the resource name, which is using an Accordion.

Zrzut ekranu 2022-01-3 o 14 14 31

How are these changes tested?