Answer the choice that was offered
热的还是冰的 asks you to choose between hot and iced. Reply 热的 or 冰的; 对 only confirms something and leaves this choice unresolved. Here 的 lets the adjective stand for the drink already being discussed. You do not have to repeat 一杯拿铁 every time the barista asks a follow-up.