JSFiddle - React, Tailwind, and code Playground

HTML

<select id="li1" autocomplete>
    <option>XXX</option>
    <option>YYY</option>
</select>
<input type="text" id="s2">

JavaScript

document.getElementById("li1").onkeydown = function (e) {
    e.preventDefault();		
  }