Results 1 to 2 of 2

Thread: Pressing "enter" on a textarea saves form instead of newline with defaultButton

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-19865 in
  1. #1
    Ext JS Premium Member
    Join Date
    Nov 2010

    Default Pressing "enter" on a textarea saves form instead of newline with defaultButton

    Ext version tested:

    Browser versions tested against:
    • Chrome 46.0.2490.80 (64-bit)
    DOCTYPE tested against:
    • HTML5
    When a textarea is in focus, the "defaultButton" is triggered when the enter key is pressed. This prevents you from creating newlines in a textarea. The "defaultButton" should not be triggered if the field in focus is a textarea.

    Steps to reproduce the problem:
    • load fiddle
    • focus the textarea
    • press enter in textarea
    The result that was expected:
    • A new line is created in the textarea
    The result that occurs instead:
    • The default button is triggered (and a new line is created)

  2. #2
    Sencha - Ext JS Dev Team nohuhu's Avatar
    Join Date
    Jun 2011
    Redwood coast


    Thanks for the report! I have opened a bug in our bug tracker.

Similar Threads

  1. Replies: 29
    Last Post: 1 Jun 2012, 8:34 AM
  2. Replies: 3
    Last Post: 2 Apr 2012, 4:39 AM
  3. how to call the function "onOk' by pressing the "enter" key on input?
    By bayat in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 13 Mar 2012, 10:02 AM
  4. Replies: 0
    Last Post: 5 May 2010, 3:18 PM
  5. catch enter in Ext.form.TextArea and active defaultbutton in form
    By mdissel in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 6 Sep 2008, 6:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts