Stop <select> menu from flickering.

This is a potential fix for #8882.