A transition occurring in ideal elastic liquids during shear flow