Trying to stop <select> menu from flickering.

This is a fix for #8882.