diff --git a/src/DropdownToggle.tsx b/src/DropdownToggle.tsx index 92469b70..ef248e4d 100644 --- a/src/DropdownToggle.tsx +++ b/src/DropdownToggle.tsx @@ -4,7 +4,6 @@ import DropdownContext, { DropdownContextValue } from './DropdownContext'; export interface UseDropdownToggleProps { ref: DropdownContextValue['setToggle']; - 'aria-haspopup': boolean; 'aria-expanded': boolean; } @@ -30,7 +29,6 @@ export function useDropdownToggle(): [ return [ { ref: setToggle || noop, - 'aria-haspopup': true, 'aria-expanded': !!show, }, { show, toggle }, @@ -48,7 +46,6 @@ const propTypes = { * toggle: (show: boolean) => void, * props: { * ref: (?HTMLElement) => void, - * aria-haspopup: true * aria-expanded: boolean * }, * }) => React.Element} diff --git a/test/DropdownSpec.js b/test/DropdownSpec.js index 9340474b..89628259 100644 --- a/test/DropdownSpec.js +++ b/test/DropdownSpec.js @@ -78,7 +78,6 @@ describe('', () => { buttonNode.textContent.should.match(/Child Title/); - buttonNode.getAttribute('aria-haspopup').should.equal('true'); buttonNode.getAttribute('aria-expanded').should.equal('false'); buttonNode.getAttribute('id').should.be.ok; });