Button: Ignore non-radio elements with the same name

Fixes #8761
Closes gh-1185