Airbus A-310 autopilot on climb

I had similar issue where it wouldn’t climb on autopilot after 10k feet, turns out I had ground spoilers armed, when I disarmed it, the plane started to climb again