Skip to content

Commit

Permalink
Never focus sorter content wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Mar 27, 2017
1 parent ea7cbd2 commit c375cd0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vaadin-grid-sorter.html
Expand Up @@ -90,7 +90,7 @@
}
</style>

<div id="content">
<div id="content" on-focus="_onContentFocus">
<content></content>
</div>
<div id="announcer" aria-hidden="true">
Expand Down Expand Up @@ -176,6 +176,11 @@
}
},

/* Need to avoid IE11 from mistaking the content wrapper as activeElement */
_onContentFocus: function(e) {
e.target.blur();
},

_getClosestCellContent: function() {
var el = this;
while (el = Polymer.dom(el).parentNode) {
Expand Down

0 comments on commit c375cd0

Please sign in to comment.