On the role of recombination in common-envelope ejections