I have been working on a Dropdown Component, this component has been made by combining multiple Dropdown Item Component. After prototyping and declaring this new component, the bug I am facing is when I use an instance of it and update values as per the requirement, for example a dropdown is for colors - Red, Blue, Green, then dropdown header would be Select Colors, clicking over it, dropdown would expand and show items - Red, Blue, Green, now if user has selected Blue from Menu, dropdown will collapse and dropdown header would change to Blue as that item has been selected, but in prototype when I select any item the header text doesn’t change it shows me the default value that I declared in the original component
The instance only works smoothly if I don’t update values.