Some legislators skip votes to campaign