Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,735
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      0  

    Default [4.2.1] Double click events fired when clicking checkbox label

    [4.2.1] Double click events fired when clicking checkbox label


    Open http://docs.sencha.com/extjs/4.2.1/e...mes/index.html

    Run in console
    Code:
     Ext.get('fooChk').on({
                mousedown : console.log,
                mouseup : console.log,
                click : console.log,
                scope : console
            })
    Click the "Foo" text and note console output.

    Code:
    A {browserEvent: MouseEvent, type: "mousedown", button: 0, shiftKey: false, ctrlKey: false…}
     
    <label id=​"fooChk-boxLabelEl" class=​"x-form-cb-label x-form-cb-label-after" for=​"fooChkInput">​Foo​</label>​
     
    Object {mousedown: function, mouseup: function, click: function, scope: Console}
    A {browserEvent: MouseEvent, type: "mouseup", button: 0, shiftKey: false, ctrlKey: false…}
     
    <label id=​"fooChk-boxLabelEl" class=​"x-form-cb-label x-form-cb-label-after" for=​"fooChkInput">​Foo​</label>​
     
    Object {mousedown: function, mouseup: function, click: function, scope: Console}
    A {browserEvent: MouseEvent, type: "click", button: 0, shiftKey: false, ctrlKey: false…}
     
    <label id=​"fooChk-boxLabelEl" class=​"x-form-cb-label x-form-cb-label-after" for=​"fooChkInput">​Foo​</label>​
     
    Object {mousedown: function, mouseup: function, click: function, scope: Console}
    A {browserEvent: MouseEvent, type: "click", button: 0, shiftKey: false, ctrlKey: false…}
     
    <input type=​"button" id=​"fooChkInput" class=​"x-form-field x-form-checkbox x-form-cb " autocomplete=​"off" hidefocus=​"true" aria-invalid=​"false" data-errorqtip>​
     
    Object {mousedown: function, mouseup: function, click: function, scope: Console}

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,833
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    This is just how the browser behaves, you'd need to preventDefault to stop it:

    Code:
    Ext.onReady(function() {
        var ct = document.createElement('div');
        
        var box = document.createElement('input');
        box.type = 'checkbox';
        box.id = 'fooBox';
        
        var label = document.createElement('label');
        label.innerHTML = 'Foo';
        label.htmlFor = 'fooBox'; 
        
        ct.appendChild(box);
        ct.appendChild(label);
        
        document.body.appendChild(ct);
        
        ct.addEventListener('click', function(e) {
            //e.preventDefault();
            console.log(e.target);
        });
    });
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi