From 404ea0361bd5dc8c1b3b2b9dcdd4abed189e14df Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Wed, 27 Aug 2014 01:05:32 -0700 Subject: [PATCH] Fix template binding delegate. Loosen the focus gambit to ease ability to test (no impact on actual use). --- core-list.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core-list.html b/core-list.html index 0d84d9a..d4aa656 100644 --- a/core-list.html +++ b/core-list.html @@ -173,6 +173,9 @@ attached: function() { this.template = this.querySelector('template'); + if (!this.template.bindingDelegate) { + this.template.bindingDelegate = this.element.syntax; + } }, _resetSelection: function() { @@ -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,