Parent link field value disappears when child table row is deleted

hello!

i’m currently on erpnext v11.1.8 . I have been facing a strange bug.
i have a parent link field “Disbursement Schedule” and a child table.

when i remove row in child table, the value from “Disbursement Schedule” disappears.
if i click save button the value display again. when i console.log, it seems that the value is still there but
it’s just not displaying. i believe that there is something with core, as i have done nothing wrong, i even capture the delete event and tried to reset the value and refresh field but nothing worked.

any assistance will be appreciated!

after deleting row

Try using child table trigger before_items_remove, and do your script there.