How can I remove the dropdown options list when the select element is empty in Windows/Chrome? The issue arises where it displays an empty dropdown with a box shadow around it. Is there a CSS solution for this problem?
I am unable to use the disabled attribute as there are events attached to clicking on the empty select. Additionally, I do not want to hide the select element.
select {
width: 300px;
}
<select name="test" id="test"></select>