Open Bug 570178 Opened 14 years ago Updated 2 years ago

ASP.NET MVC 2 - Html.RenderPartial retaining input focus

Categories

(Firefox :: General, defect)

3.6 Branch
x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: thomas.m.gaughan, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3

Developing ASP.NET MVC 2 site.
Using a jQuery plugin for rich text editor (basically just a textarea)
When doing this in .aspx file (View):
<% Html.RenderPartial("../UserControls/RichTextEditor"); %>
...the input focus stays in the textarea (one of the last controls on the page).  Even forcing set focus in javascript on load does not work.

If just using:
<%: Html.TextArea("Description", null, new { @class = "rte", @rows = "12", @cols = "60", @maxlength = "1000" } )%>
...then focus goes to first control on page load



Reproducible: Always

Steps to Reproduce:
1. See Details
2.
3.
Actual Results:  
See Details


Surprisingly, the code works in IE 8
OS: Other → Windows 7
Hardware: x86_64 → x86
Version: unspecified → 3.6 Branch
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.