Eric Beland
2006-Jun-21 13:11 UTC
[Rails] text_field_with_auto_complete broken in firefox?
I am seeing a problem with text_field_with_auto_complete in which the input
does not get populated with the selected value, but only in firefox (1.5.0.4).
Works in IE just fine. I have a super-simple mockup that shows this problem
below. Can anyone please confirm for me that this does/does not work in
firefox or point out my mistake? I''m wondering if I need to submit a
bug?
The example seems really simple...
-Eric
filename: testpage.htm
<html>
<head>
<%= javascript_include_tag :defaults %>
</head>
<body>
<%= text_field_with_auto_complete :owner, :company_name , {:size =>
15}, {:skip_style => true} %>
</body>
</html>
def auto_complete_for_owner_company_name
@owners = []
@owners << "owner1"
@owners << "owner2"
render :partial => ''owners''
end
def testpage
render :layout=>false
end
_owners.rhtml:
<ul class="owners">
<% for owner in @owners do -%>
<li class="autocomplete_item">
owner
</li>
<% end -%>
</ul>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060621/4570d498/attachment.html
