Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion paper-submenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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();
}
},
Expand Down