From: Edward Date: Wed, 29 Aug 2018 09:11:57 +0000 (+0800) Subject: Roo/bootstrap/Element.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=72f3be7092d0834ee68689d16b360c5a1fcc11b6;p=roojs1 Roo/bootstrap/Element.js --- diff --git a/Roo/bootstrap/Element.js b/Roo/bootstrap/Element.js index bed0e4a189..4ac14945ef 100644 --- a/Roo/bootstrap/Element.js +++ b/Roo/bootstrap/Element.js @@ -59,7 +59,11 @@ Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, { Roo.bootstrap.Element.superclass.initEvents.call(this); if(this.clickable){ - this.el.on('click', this.onClick, this); + if(!Roo.isTouch){ + this.el.on('click', this.onClick, this); + } else { + this.el.on('touchstart', this.onClick, this); + } } },