Keti777 / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
1 stars 0 forks source link

Blur not always triggered correctly #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using as recommended in issue 78.
http://code.google.com/p/dropdown-check-list/issues/detail?id=78

Please see attached code sample for example.

What steps will reproduce the problem?
1. Attach blur event to more than one select. 
2. Click a dropdown check list.
3. Make any selection changes or none at all.
4. Click directly on another dropdown check list.
5. Blur is fired on the wrong dropdown check list.

What is the expected output? What do you see instead?
I would expect to see blur fired on the first dropdown check list, the one
that is closing. Blur is being fired on the wrong one. If you click any
where after the wrong blur is fired the correct one will be fired very late.

What version of the product are you using?
Using 0.9 but tested with trunk as of 5/18/2010.

Sorry I don't have time to recommend a fix. Thanks for your work on this
project.

Original issue reported on code.google.com by adamge...@gmail.com on 18 May 2010 at 1:08

Attachments:

GoogleCodeExporter commented 8 years ago
Good time!!!

Having the same problem. Same in FireFox (3.6.6) and IE (7.0). When items are 
picked in the first ddcl, I want to do a postback to server to update the items 
list of the second ddcl. It works fine until u starting to click on another 
ddcl directly after picking items in the first one. blur event happens only 
after I leave the latest ddcl control. i'm not very good at jquery, so can't 
propose a solution, but sesperately waiting for an advice on how to make it 
work correctly.

Pavel

Original comment by pavelpop...@gmail.com on 1 Jul 2010 at 7:16

GoogleCodeExporter commented 8 years ago
There are three related issues here:
1) Prior to v1.0, DDCL easily got confused when more than one control was 
active on a page. This confusion should now be fixed.
2) When using multiple DDCL controls on a page, be sure to assign a unique id 
to each <select> involved.  DDCL has a known problem assigning its own ids.
3) I never got 'blur' to fire in a consistent manner. A new callback function 
"onComplete" can be provided that is invoked when the user closes the dropdown.

Original comment by womohun...@ittrium.com on 14 Sep 2010 at 2:18