From 43b76dfd3636160d9fb016c298b7db3fdf765c0f Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 28 Mar 2014 18:59:09 +0800 Subject: [PATCH] Roo/bootstrap/Button.js --- Roo/bootstrap/Button.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Roo/bootstrap/Button.js b/Roo/bootstrap/Button.js index 6385ef10a8..29d9292907 100644 --- a/Roo/bootstrap/Button.js +++ b/Roo/bootstrap/Button.js @@ -235,7 +235,9 @@ Roo.extend(Roo.bootstrap.Button, Roo.bootstrap.Component, { onClick : function(e) { Roo.log('button on click '); - e.preventDefault(); + if(this.tag !== 'a' || this.href === ''){ + e.preventDefault(); + } this.fireEvent('click', this, e); } -- 2.39.2