I wanted to implement a dropdown menu in my app but noticed that the DropdownMenuRadioItem was not indicating which option was currently selected, even though I was passing the controlled values to it. After checking the documentation, I found that the dropdown radio-related components were supposed to accept a boolean, and the onValueChange was also expected to return a boolean. However, in my code, the value was expecting a string, and onValueChange was returning the selected radio item's value as a string. I downloaded the latest version of the dropdown menu, but it’s still receiving a string, which seems more appropriate to me than a boolean, despite what the documentation suggests.
I wanted to implement a dropdown menu in my app but noticed that the DropdownMenuRadioItem was not indicating which option was currently selected, even though I was passing the controlled values to it. After checking the documentation, I found that the dropdown radio-related components were supposed to accept a boolean, and the onValueChange was also expected to return a boolean. However, in my code, the value was expecting a string, and onValueChange was returning the selected radio item's value as a string. I downloaded the latest version of the dropdown menu, but it’s still receiving a string, which seems more appropriate to me than a boolean, despite what the documentation suggests.