Add preventDefault in the edit event.