You’ve been lucky. I ferment the onions, not pickle them. I don’t use vinegar.
Also there is a whole thread on fermentation