JSFiddle - React, Tailwind, and code Playground
HTML
<select id="mySelect" multiple="multiple">
<option>Here</option>
<option>There</option>
<option>Everywhere</option>
<option>AndyW</option>
</select>
CSS
#mySelect {
height: 16px;
}
JavaScript
$('#mySelect').on('click, focus', function(e) {
e.preventDefault();
$(this).css('height', 'auto');
});
$('#mySelect').on('blur', function(e) {
$(this).css('height', 16);
});