Haruka! The First Pokémon Contest Challenge!! - S6-E35
Continuity mistake: When Ash suggests that May could check the date for the contest earlier, the buildings on the side change between shots. Also, the left side of his hat constantly changes from red to black. (00:00:03)
Answer: Yes it ran away because Layla hurt its feelings.