Closed Bug 291025 Opened 20 years ago Closed 9 years ago

Textarea focus jumps up when typing more than the visual area can contain

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: vbenincasa, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 - Nbt (Suporte) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3 When using javascript "slice()" function to limit a textarea, and the text exceeds the visible area, the function move the focus to the top of the textarea, confusing the writing. Reproducible: Always Steps to Reproduce: 1.Make a form with a textarea; 2.Limit textarea using slice(): onkeyup="this.value=this.value.slice(0,100);" Actual Results: When writing in the created textarea, and the text exceeds the visible area, the function move the focus to the top of the textarea, confusing the writing. Expected Results: The focus need to continue in the cursor (end of text / end of textarea), like Opera and Internet Explorer.
Attached file testcase (obsolete) —
just type more than 15 characters, includung some spaces. Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050419 Firefox/1.0+ WFM
Summary: Textarea focus up when using javascript "slice()" function → Textarea focus up when using javascript "slice()" function
(In reply to comment #1) > Created an attachment (id=181194) [edit] > testcase > > just type more than 15 characters, includung some spaces. > > Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050419 > Firefox/1.0+ > > WFM But in your example, the text size is limited to the textarea visible area (15 characters). The problem occur when the text size exceeds the visible area.
(In reply to comment #2) > (In reply to comment #1) > > Created an attachment (id=181194) [edit] [edit] > > testcase > > > > just type more than 15 characters, includung some spaces. > > > > Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050419 > > Firefox/1.0+ > > > > WFM > > But in your example, the text size is limited to the textarea visible area (15 > characters). > The problem occur when the text size exceeds the visible area. > > Just attach an example please, makes it a lot easier
> Just attach an example please, makes it a lot easier http://www.powernetpages.com.br/diversos/firefox_bug.html
Attached file testcase
testcase showing the problem. type 100 characters and see where the cursor goes
Attachment #181194 - Attachment is obsolete: true
->NEW
Status: UNCONFIRMED → NEW
Ever confirmed: true
>> type 100 characters and see where the cursor goes Obs. You dont need to reach the 'slice()' limit (in this example, 100 characters) to see the problem. The problem occur when the text size exceeds the visible area of the textarea.
Keywords: testcase
Summary: Textarea focus up when using javascript "slice()" function → Textarea focus jumps up when typing more than the visual area can contain
Assignee: bross2 → nobody
(In reply to Peter van der Woude [:Peter6] from comment #5) > Created attachment 181289 [details] > testcase > > testcase showing the problem. > type 100 characters and see where the cursor goes Not reproduced. Closing as WFM. Arch Linux, FF 50.1.0 Win 10, FF 50.1.0
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: