1

Your console statement shows that you are not setting your id field correctly. If you're using lightning-datatable, you need to specify the key field correctly to grab the id values from the edit event.


1

Use onkeypress to get old value on this event it will return the value before pressing keys and to get new value please use onkeyup then it will give new value. So you need to use two events onkeypress and onkeyup and it will work. thank you


Only top voted, non community-wiki answers of a minimum length are eligible