+ Start a Discussion

Enter key lost focus on textarea in lightning experience

Hi All

I have a textarea field in the standard record detail page in lightning experience. While entering text to this field if I click on enter key rather than moving to next line it shifts the focus from textarea field to save button.

Has anybody faced this kind of issue? Is there any setting where we can configure this?

Khan AnasKhan Anas (Salesforce Developers) 
Hi Sunny,

Greetings to you!

according to Salesforce Knowledge Article: https://help.salesforce.com/articleView?id=000233272&type=1

Hitting "Enter" once takes users to a highlighted view of the field (cursor leaves the text box)

This is working as designed.

The intention for inline editing in combination with Lightning is meant for very efficient and quick saves. Hitting "enter" twice will save a record quickly when users are done entering values/text.

Workaround: For users who wish to proceed to the next line without saving the record, SHIFT+ENTER can be used instead.

Also, it is an idea to be able to hit enter to go to the next line in Lightning Text Area Fields.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Raj VakatiRaj Vakati
This is the standard behaviors on the Salesforce UI i guess, enter button click will take as form submitted and record will be saved .. 

If you want to to customize this behavior you need to override the entire page view

If you want to move to the next field use Tab key ..