diff --git a/paper-submenu.html b/paper-submenu.html index 58fed23..ce499c1 100644 --- a/paper-submenu.html +++ b/paper-submenu.html @@ -74,6 +74,18 @@ is: 'paper-submenu', properties: { + + /** + * Set notToggleOnTap to true to avoid show sub-element on tap. + * + * @attribute notToggleOnTap + */ + notToggleOnTap: { + + type : Boolean, + value : false + }, + /** * Fired when the submenu is opened. * @@ -165,7 +177,7 @@ * A handler that is called when the trigger is tapped. */ _onTap: function(e) { - if (!this.disabled) { + if (!this.disabled && !this.notToggleOnTap) { this.toggle(); } },