YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub

YUI 2.x

Ticket #2528002 (closed defect)

Reporter


Josh Ritter
Opened: 05/14/09
Last modified: 07/30/09
Status: closed
Type: defect
Resolution: fixed

Owner


Jenny Han Donnelly
Target Release: 2.8.0
Priority: P3 (normal)
Summary: autocomplete fails to close
Description:

i think the problem is best described by an example

http://ritter.eplt.washington.edu/Scenario2_AllSections.html

Using ff3 (linux) once you click into an auto complete and try with a mouse click to select an item the auto complete will not collapse. Switching back to yui 2.6.0 fixes the problem.

Type: defect Observed in Version: 2.7.0
Component: AutoComplete Severity: S3 (normal)
Assigned To: Jenny Han Donnelly Target Release: 2.8.0
Location: Library Code Priority: P3 (normal)
Tags: Relates To:
Browsers: Firefox 3.x - All
URL:
Test Information:

Change History

Jenny Han Donnelly

YUI Developer

Posted: 06/19/09
  • location changed to Library Code
  • milestone changed to 2.8.0
  • priority changed to P3 (normal)
  • status changed from new to infoneeded
  • version changed to 2.7.0

I'm not able to repro on FF3/XP. Is this only reproducible on Linux?

Josh Ritter

Posted: 06/19/09
  • status changed from infoneeded to assigned

seen this problem in ie, and ff... not just a linux problem

my initial bug description was a bit incomplete. in some browsers the problem is not as "obvious" as in others. In the example below the clicking the first option (depending on where your mouse is) fails to close the autocomplete. When the mouse is towards the edges of the first option the autocomplete closes, otherwise it does not.

here is a more basic example of the problem
http://ritter.eplt.washington.edu/auto_complete_2.7.html

here is the same code running on 2.6
http://ritter.eplt.washington.edu/auto_complete_2.6.html

Jenny Han Donnelly

YUI Developer

Posted: 07/1/09
  • status changed from assigned to accepted

Will investigate.

Jenny Han Donnelly

YUI Developer

Posted: 07/30/09
  • resolution changed to fixed
  • status changed from accepted to closed

This is no longer reproducible against the latest build. I believe it has been fixed by the following checkin:
2100e97... [fix bug 1391567] Was erroneously checking _bItemSelected instead of _bFocused before firing textboxFocusEvent. Cleaned up _bFocused to be set when textbox is focused and unset when textbox is blurred (taking into account container clicks). Added isFocused().