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

Commit

Permalink
use core-activate to close the dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Sep 16, 2014
1 parent cfc6b46 commit 12fe7de
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions core-dropdown-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
@param {boolean} detail.isSelected true for selection and false for deselection
@param {Object} detail.item the item element
-->

<!--
Fired when an item element is tapped.
@event core-activate
@param {Object} detail
@param {Object} detail.item the item element
-->

<link href="../polymer/polymer.html" rel="import">
<link href="../core-icon/core-icon.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
Expand All @@ -75,7 +84,7 @@
</div>

<core-dropdown id="dropdown" relatedTarget="{{$.control}}" opened="{{opened}}" halign="{{halign}}" valign="{{valign}}">
<core-menu selected="{{selected}}" valueattr="{{valueattr}}" selectedItem="{{selectedItem}}" on-core-select="{{selectAction}}">
<core-menu selected="{{selected}}" valueattr="{{valueattr}}" selectedItem="{{selectedItem}}" on-core-activate="{{activateAction}}">
<content></content>
</core-menu>
</core-dropdown>
Expand Down Expand Up @@ -183,7 +192,7 @@

},

selectAction: function() {
activateAction: function() {
this.opened = false;
},

Expand Down

0 comments on commit 12fe7de

Please sign in to comment.