/tʰeɪk liːv ʌv wʌnz ˈsɛnsɪz/
to act irrationally or foolishly.
“He must have taken leave of his senses to jump.”