Roo/bootstrap/Element.js
authorEdward <edward@roojs.com>
Wed, 29 Aug 2018 09:11:57 +0000 (17:11 +0800)
committerEdward <edward@roojs.com>
Wed, 29 Aug 2018 09:11:57 +0000 (17:11 +0800)
Roo/bootstrap/Element.js

index bed0e4a..4ac1494 100644 (file)
@@ -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);
+            }
         }
         
     },