ekwonye-richard/react-flags-select

Button id is not changeable

Closed this issue · 2 comments

The div id is changeable, but the button isn't so if there are 2 flags selectors, it causes this alert on browser

[DOM] Found 2 elements with non-unique id #rfs-btn: (More info: https://goo.gl/9p2vKq) <button id=​"rfs-btn" type=​"button" class=​"ReactFlagsSelect-module_selectBtn__19wW7 flag-select-button" aria-labelledby=​"rfs-btn" aria-haspopup=​"listbox" aria-expanded=​"false" data-testid=​"rfs-btn" style=​"font-size:​ 16px;​">​…​</button>​ flex 

Hi @itamarmoa

This issue has been fixed in this PR.

You can use the rfsKey to have unique ids.

@ekwonye-richard Thank you for the fast response :)