By a close vote of 8-7, the commission recommended ending partisan judicial elections.