Stop <select> menu from flickering.

This is a potential fix for #8882.
Updated. Could you check again?