To throw your toys out of the pram

To have a temper tantrum

e.g. my neighbour was not voted as Chair of his local tennis club so he has resigned his membership; talk about throwing your toys out of the pram!

The idiom comes from the tendency of toddlers to have a tantrum when they don’t get their own way.