From 58608045fcce440ef95c9d33ef5915a959a8b34b Mon Sep 17 00:00:00 2001 From: Owen Campbell-Moore Date: Fri, 13 Feb 2015 06:40:10 -0800 Subject: [PATCH] Fix toggle overloading bug I was wondering why the ugly grey toggle was being applied to these buttons, turns out paper-button-base was looking to see whether toggle was set on the element (it has an "if (this.toggle)") but paper-dropdown overloaded toggle with the a function, causing "if (this.toggle)" to resolve to true due to JS's lack of type system. Either way, renaming the on-tap event here to anything other than toggle (I chose toggleDropdown) fixes the issue. --- demo.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo.html b/demo.html index d23962d..174ab1f 100644 --- a/demo.html +++ b/demo.html @@ -67,14 +67,14 @@ - +