[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4648) s:defaultAction blocks new lines in <textArea>

Nicholas Oxhøj (JIRA) jira-events at lists.jboss.org
Thu Mar 10 02:07:45 EST 2011


    [ https://issues.jboss.org/browse/JBSEAM-4648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587047#comment-12587047 ] 

Nicholas Oxhøj commented on JBSEAM-4648:
----------------------------------------

Yes - very strange. But I was right in assuming that the JavaScript wrapping code you gave, was a suggested fix for the Seam developers and not a workaround that I could use with the current version of Seam, right?

> s:defaultAction blocks new lines in <textArea>
> ----------------------------------------------
>
>                 Key: JBSEAM-4648
>                 URL: https://issues.jboss.org/browse/JBSEAM-4648
>             Project: Seam
>          Issue Type: Bug
>          Components: JSF Controls
>    Affects Versions: 2.2.1.CR1
>            Reporter: Adrian Mitev
>
> s:defaultAction shouldn't work if the enter button is presses inside textarea element. To fix the issue wrap the javascript that s:defaultAction generates inside this code:
> var evt = event.IE ? event.srcElement : event.target; if (evt.tagName.toLowerCase() != 'textarea') { <original javascript here> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the seam-issues mailing list