Roo/bootstrap/Element.js
authorEdward <edward@roojs.com>
Wed, 29 Aug 2018 08:58:48 +0000 (16:58 +0800)
committerEdward <edward@roojs.com>
Wed, 29 Aug 2018 08:58:48 +0000 (16:58 +0800)
Roo/bootstrap/Element.js

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