The Texas Supreme Court on Friday ruled that a trial court made a mistake by granting some child custody to the former fiance of the child’s deceased mother although the child’s father objected.

The family law bar was closely watching the case, In Re C.J.C., about the constitutional rights of parents in child-custody disputes because it raised questions about how courts should weigh parental rights in custody disputes where nonparents seek to modify custody orders.