function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jojoforcejojoforce 

Inline Edit with lightning:datatable is submitting the form on edit

I have a lightning:recordEditForm and inside is a nested lightning:datatable in which inline edit is enabled for some of the fields, for some reason when I click the pencil icon or inline edit for the datatable, it is submitting the form. 

The code snippet looks something like below. 


 
<lightning:recordEditForm>

	<lightning:datatable >

	... code snippet ....

	<lightning:datatable />

	<lightning:button type="submit" />
</lightning:recordEditForm>

 
PriyaPriya (Salesforce Developers) 
Hi ,

Can you please check below link which matches you requirment
https://salesforce.stackexchange.com/questions/306753/lightning-datatable-that-is-nested-inside-a-recordeditform-call-onsubmit-on-ev

Hope  this is helpful!

Regards,
Ranjan