On the Spur of the Moment

What does the idiom “on the spur of the moment” mean?

Definition: without advance planning, spontaneously

Example: On the spur of the moment, we decided to take a trip to the Canary Islands.