JSFiddle - React, Tailwind, and code Playground
HTML
<p>Select an option from the dropdown. Hit DEL. It will reset. Now drop down the options and hit DEL while the droplist is open. Nothing happens.</p>
<select>
<option></option>
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
JavaScript
$('SELECT').on('keydown', function(event) {
var keyCode = event.keyCode || e.which;
if (keyCode ==8 || keyCode == 46)
{
event.target.selectedIndex = 0;
event.preventDefault();
}
});