anshuman9468 commented on PR #45064:
URL: https://github.com/apache/superset/pull/45064#issuecomment-6046275618
CodeAnt’s risk assessment is a false positive. `Radio.Group` retains its
`onChange` handler (`onChange={e => onChange(e.target.value)}`), which is the
canonical change path for `Radio.Button` selections. This patch removes only
the second, per-button dispatch that caused duplicate callbacks.
The updated regression coverage clicks a different option and asserts
exactly one callback, then clicks the already-selected option and asserts no
callback. The button click handler remains solely to preserve focus behavior.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]