Change on-tap to on-click for iron-dropdown

This fixes an issue under iOS 13 when clicking a button in the dropdown
would not work.

Bug: Issue 11984
Change-Id: I339524e1c9cde49f74c2b5228ca35ec9c0dfdece
(cherry picked from commit ed757c0e7a)
This commit is contained in:
Paladox none
2019-11-24 16:45:18 +00:00
parent b16d0a720c
commit 596ee7838f
4 changed files with 4 additions and 4 deletions

View File

@@ -147,7 +147,7 @@ limitations under the License.
id="dropdown"
vertical-align="top"
allow-outside-scroll="true"
on-tap="_handleDropdownTap">
on-click="_handleDropdownClick">
<paper-listbox
class="dropdown-content"
slot="dropdown-content"

View File

@@ -75,7 +75,7 @@
* Handle a click on the iron-dropdown element.
* @param {!Event} e
*/
_handleDropdownTap(e) {
_handleDropdownClick(e) {
// async is needed so that that the click event is fired before the
// dropdown closes (This was a bug for touch devices).
this.async(() => {

View File

@@ -109,7 +109,7 @@ limitations under the License.
vertical-offset="[[verticalOffset]]"
allow-outside-scroll="true"
horizontal-align="[[horizontalAlign]]"
on-tap="_handleDropdownTap">
on-click="_handleDropdownClick">
<div class="dropdown-content" slot="dropdown-content">
<ul>
<template is="dom-if" if="[[topContent]]">

View File

@@ -152,7 +152,7 @@
* Handle a click on the iron-dropdown element.
* @param {!Event} e
*/
_handleDropdownTap(e) {
_handleDropdownClick(e) {
this._close();
},