You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the <paper-icon-button id="close-drawer-button"> is focused when I open the drawer. If I disable the button the next focuseable element is focused.
How to disable autofocus?
Browsers Affected
Chrome
Firefox
Safari 9
Safari 8
Safari 7
Edge
IE 11
IE 10
The text was updated successfully, but these errors were encountered:
@KevinAsher disabling focus by attribute no-focus-trap work well
But, how manually set focused element from js?
For example, in PSK drawer always focused first element. I try manually set focus for selected anchor in _pageChanged, but still focused first element.
_pageChanged(page) {
let link = this.$.drawer.querySelector(`a.iron-selected`);
if (link) link.focus();
// other code here
Description
App-drawer causes auto focus on the first focuseable element from its content
<app-drawer id="drawer" align="right">
<app-toolbar>
<paper-icon-button id="close-drawer-button" icon="someIcon"></paper-icon-button>
</app-toolbar>
<paper-menu id="drawer-menu" tabindex="-1" selected="[[tabSelected]]">
<template is="dom-repeat" items="{{menuItems}}">
<paper-item id="{{item.name}}" name$="{{item.name}}">{{item.value}}</paper-item>
</template>
</paper-menu>
</app-drawer>
The problem is that the
<paper-icon-button id="close-drawer-button">
is focused when I open the drawer. If I disable the button the next focuseable element is focused.How to disable autofocus?
Browsers Affected
The text was updated successfully, but these errors were encountered: