Bug: DropdownList wrapped with a label

4 posts, 0 answers
  1. Jay
    Jay avatar
    62 posts
    Member since:
    Sep 2005

    Posted 13 Feb 2012 Link to this post

    See: http://jsfiddle.net/w2GB2/

    If you wrap a dropdownlist with a label it opens then immediately closes.  Happens in IE9, Chrome 742, and Firefox 10.  I understand the workaround, but I frequently wrap my input fields with labels to save bandwidth.

    Pretty sure it's really chrome 17 but the number increments so frequently...

    -Jeff
  2. Jay
    Jay avatar
    62 posts
    Member since:
    Sep 2005

    Posted 14 Feb 2012 Link to this post

    Ok, the previous didn't fix anything, simply band-aided a solution so removing post.

    I did figure out what my 'related' issue was though.   If you enable an enabled dropdownlist, it freaks out.  I assume it's double binding the click event, but I haven't looked yet.

    See: http://jsfiddle.net/QDju9/

  3. Jay
    Jay avatar
    62 posts
    Member since:
    Sep 2005

    Posted 14 Feb 2012 Link to this post

    Ok....   Fixed both issues.

    I don't know if you telerik guys are going to like the first fix.  But oh well, simple way to fix it is around line 10510

    Move
    wrapper.unbind();

    Up outside of the:
    if (enable === false) {


    Second fix is similiar to what I thought before.  Around line: 10535. 

    Change:
    click: function() {
         that.toggle();
    },


    to:
    click: function(e) {
         e.preventDefault();
         that.toggle();
    },


    This fixes both issues for me in my local tests.
  4. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 14 Feb 2012 Link to this post

    Hello Jeff,

     
    Thank you for drawing our attention to this issue. We will address this issue in the next official release of Kendo UI. As a gratitude for your involvement I have updated your Telerik points.

    Regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top