This is a migrated thread and some comments may be shown as answers.

Bug: DropdownList wrapped with a label

3 Answers 141 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 13 Feb 2012, 09:29 PM
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

3 Answers, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 1
answered on 14 Feb 2012, 01:59 PM
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/

0
Jay
Top achievements
Rank 1
answered on 14 Feb 2012, 03:03 PM
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.
0
Georgi Krustev
Telerik team
answered on 14 Feb 2012, 03:17 PM
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!
Tags
DropDownList
Asked by
Jay
Top achievements
Rank 1
Answers by
Jay
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or