radio-group icon indicating copy to clipboard operation
radio-group copied to clipboard

Setting autoFocus={false} causes unexpected broken functionality

Open tonypee opened this issue 5 years ago • 1 comments

The demo has autoFocus={true}, but if you change it to 'false' everything breaks. This is fairly unintuitive, and costly if you dont realize that that was the cause (my case)

https://codesandbox.io/s/radio-group-demo-forked-s8c6s?file=/src/index.js

tonypee avatar Oct 20 '20 03:10 tonypee

It seems that the Radio elements dont focus themselves when they become selected by keyboard, as that incorrectly relies on the autoFocus flag - here's a PR: https://github.com/palmerhq/radio-group/pull/19

tonypee avatar Oct 25 '20 05:10 tonypee