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

[Solved] Change event firing on unrelated clicks?

1 Answer 89 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Derek Trickett
Top achievements
Rank 1
Derek Trickett asked on 08 Feb 2011, 09:10 PM
We have just recently upgraded to Telerik MVC 2010.3.1318 from 2010.2.930.  It looks like a javascript change in telerik.list.js has caused some odd behavior.  

After a page has loaded, the first click anywhere on the page fires the change event for all telerik lists on the page.  Reverting back to the old logic fixed the issue.

Old (2010.2.930, Line 179):
if (isDropDown && !$.contains(this.element, e.target) && !$.contains($dropDown.parent()[0], e.target)) {
    this.trigger.change();
    this.trigger.close();
}

New (2010.3.1318, Line 24): 
if ($.contains(this.element, e.target)
|| (isDropDown && $.contains($dropDown.parent()[0], e.target)))
    return;
 
this.trigger.change();
this.trigger.close();

Is this a bug or by reverting the logic am I re-introducing a different bug?  

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 09 Feb 2011, 11:38 AM
Hello Derek,

 
Unfortunately I am not able to reproduce the depicted issue locally. Could you please send us a simple test project which replicates the problem. Thus I will be able to investigate it locally and provide you a solution/fix of the issue.

Best regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Derek Trickett
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or