Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Fix template binding delegate.
Browse files Browse the repository at this point in the history
Loosen the focus gambit to ease ability to test (no impact on actual use).
  • Loading branch information
kevinpschaaf committed Aug 27, 2014
1 parent 619f85d commit 404ea03
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@

attached: function() {
this.template = this.querySelector('template');
if (!this.template.bindingDelegate) {
this.template.bindingDelegate = this.element.syntax;
}
},

_resetSelection: function() {
Expand Down Expand Up @@ -352,8 +355,8 @@
// are excluded as well.
var active = window.ShadowDOMPolyfill ?
wrap(document.activeElement) : this.shadowRoot.activeElement;
if (active && (active != this) &&
(active.parentElement != this)) {
if (active && (active != this) && (active.parentElement != this) &&
(document.activeElement != document.body)) {
return;
}
// Unfortunately, Safari does not focus certain form controls via mouse,
Expand Down

0 comments on commit 404ea03

Please sign in to comment.