79154261

Date: 2024-11-04 05:19:50
Score: 1
Natty:
Report link

The problem is not in Ant design, but is more about how React works. By placing the Select inside a radio, every time you click the radio to open the Select component, the onChange of the Radio.Group is triggered, changing the state of the component and therefore re-render the component. Just remove the Radio wrapper from the Select component and replace it with custom trigger component that looks the same way as the Ant's radio.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: DimitarM