react-overlays
react-overlays copied to clipboard
DropdownToggle has the incorrect aria attribute of aria-haspopup
Describe the bug
DropdownToggle is adding the aria-haspopup="true" when it should not.
Expected behavior
The aria-haspopup=true attribute should only be added if the aria role is menu, listbox, tree, grid, or dialog (https://www.w3.org/TR/wai-aria-1.1/#aria-haspopup).
Read more here: twbs/bootstrap#28295
Would you like to send in a PR to fix this? Thanks!