Dice the onion and mix it with the vinegar, oil, sugar, mayonnaise and chives with a whisk to make a salad dressing. Season to taste with salt and pepper. Mix with the beans and let steep for at least 1 hour.
We always prepare the salad the evening before, then it tastes even better.