react-phone-input-2 icon indicating copy to clipboard operation
react-phone-input-2 copied to clipboard

component has 'phone-form-control' as id on the input field which makes it non semantic when multiple are used

Open J-theGit opened this issue 6 years ago • 1 comments

Hi, Thank you for this cool component. I've noticed that I'm getting a lot of warnings on react app and they all come from using this input component. Apparently the input of the phone field is using a hard-coded 'phone-form-control'. This means that whenever there are multiple of those on the page, there will be warnings shown in the console. Also, semantically this would be deemed as invalid HTML. Would you be able to change the usage from id to a class? Or implement the fix for same id's in any other way?

Thank you

J-theGit avatar Dec 18 '19 16:12 J-theGit

Also getting this! Whilst not critical, would be great to see a fix.

rich186 avatar Jan 06 '20 12:01 rich186