while they chatted, 用过去时,没有错.因为前面有主语they,是时间状语从句。不是因为有while就用chatting,如果要用,则是:While they were chatting, 这样还要加个be动词。