Another thing is, do you want your daughter to have a chance to live in Thailand long-term in the future?
If yes, you have to cancel her extension officially before she leaves Thailand. To do it, the stamps have to be transferred to a new passport.
(I cannot come up with a reason for her extension that is not required to be cancelled, such as "being over 50" <- no reason to cancel)
If an old and "supposed-to-be-expired" extension is remaining, it will cause an issue when the holder wants to apply for a different extension in the future, even after years have passed.
Same for you, if you are on an extension currently, and there is even a slim chance you will be back to Thailand as not-a-tourist, you should cancel your extension officially before you leave.
If none of you will ever be back to Thailand other than a tourist for short holidays, you can just leave.
If you are still on the entry stamp from the visa (90-days for Non-O for over 50, or up-to-365-days for Non-OA) with an actual visa sticker or eVisa PDF
-> The same as OP, you cannot transfer your visa. Carry both passports until the visa itself expires.
If you have already applied for a 1-year extension at the local immigration office (read the stamp)
-> Different from OP's case, you have to transfer the stamps to your new passport.
A visa issued by a Thai embassy or consulate cannot be transferred to a new passport. You have to bring both passports until your visa expires to enter Thailand on your visa.