Changeset 13345

Show
Ignore:
Timestamp:
04/17/08 08:50:06 (7 months ago)
Author:
liucougar
Message:

fixes #6560: allow click event on button widget to propogate to match native browser behavior when clicking on a button with onclick="return false" specified

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/form/Button.js

    r13252 r13345  
    3939                // summary: internal function to handle click actions 
    4040                if(this.disabled || this.readOnly){ 
    41                         dojo.stopEvent(e); // needed for checkbox 
    4241                        return false; 
    4342                } 
     
    4948                // summary: callback when the user mouse clicks the button portion 
    5049                if(this._onClick(e) === false){ // returning nothing is same as true 
    51                         dojo.stopEvent(e); 
     50                        e.preventDefault(); // needed for checkbox 
    5251                }else if(this.type=="submit" && !this.focusNode.form){ // see if a nonform widget needs to be signalled 
    5352                        for(var node=this.domNode; node.parentNode/*#5935*/; node=node.parentNode){