If the line item form has Save & Continue Mode (formerly known as compute mode) enabled, the line items will be linked when the parent form is submitted, not when the Save & Continue button is clicked. This is the intended behavior.
Compute mode and linked records line items.
Updated over a week ago