AutoCompleteTextField Throwing Out a TypeError in IE6/IE7
---------------------------------------------------------

                 Key: WICKET-1594
                 URL: https://issues.apache.org/jira/browse/WICKET-1594
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.3.3
         Environment: IE6/IE7
            Reporter: Andy Chu


Wicket 1.3.3. fixed many bugs of AutoCompleteTextField. However, it may induce 
some new problems:

I create a very simple page only containing an AutoCompleteTextField and visit 
the page using IE6/IE7/FF. I found that IE will prompt me a javascript  
TypeError but FF doesn't .

The TypeError is thrown by the following statement in the showAutoComplete 
method when zIndex is assigned to "auto":

menu.style.zIndex = index=="auto"?index:Number(index)+1;

I guess IE may not allow us to assign "auto" to zIndex but in FF.  However if I 
change the statement into the following one, everything works fine.

menu.style.zIndex = index=="auto"?0:Number(index)+1;

Because I do not completely understand wicket-autocomplete.js,  I can not make 
sure if this modification will bring up another bug. Hope can get the answer 
from here.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to