If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

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

UNCONFIRMED
Unassigned

Status

()

Firefox
General
UNCONFIRMED
7 years ago
7 years ago

People

(Reporter: thomas.m.gaughan, Unassigned)

Tracking

3.6 Branch
x86
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
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
(Reporter)

Updated

7 years ago
OS: Other → Windows 7
Hardware: x86_64 → x86

Updated

7 years ago
Version: unspecified → 3.6 Branch
You need to log in before you can comment on or make changes to this bug.