diff --git a/addon/templates/components/paper-menu.hbs b/addon/templates/components/paper-menu.hbs index 6198d5c7c..a89562e1c 100644 --- a/addon/templates/components/paper-menu.hbs +++ b/addon/templates/components/paper-menu.hbs @@ -9,6 +9,7 @@ onFocus=(action "handleFocus") renderInPlace=(readonly renderInPlace) vPosition=(readonly vPosition) + tabindex=-1 ) content=(component "paper-menu-content" dropdown=(readonly publicAPI) diff --git a/tests/integration/components/paper-menu-test.js b/tests/integration/components/paper-menu-test.js index c41f879b3..2f720d7c8 100644 --- a/tests/integration/components/paper-menu-test.js +++ b/tests/integration/components/paper-menu-test.js @@ -195,4 +195,26 @@ test('keydown changes focused element', function(assert) { }); }); }); +}); + +test('md-menu doesn\'t have a tabindex attribute', function(assert) { + this.render(hbs` + {{#paper-menu as |menu|}} + {{#menu.trigger}} + {{#paper-button iconButton=true}} + {{paper-icon "local_phone"}} + {{/paper-button}} + {{/menu.trigger}} + {{#menu.content width=4 as |content|}} + {{#content.menu-item onClick="openSomething"}} + Test + {{/content.menu-item}} + {{#content.menu-item onClick="openSomething"}} + Test 2 + {{/content.menu-item}} + {{/menu.content}} + {{/paper-menu}} + `); + + assert.equal(this.$('md-menu').attr('tabindex'), '-1', 'no tabindex present'); }); \ No newline at end of file