WICG / webhid

Web API for accessing Human Interface Devices (HID)
Other
142 stars 35 forks source link

hid device stop receiving data when select element is open #83

Open JaosnHsieh opened 3 years ago

JaosnHsieh commented 3 years ago

MacOS BigSur 11.2.3

Chrome Version 95.0.4638.54 (Official Build) (x86_64)

html

   <select>
      <option> test </option>
    </select>
device.addEventListener("inputreport", (e) => {
        const data = e.data.buffer;
        console.log(new Date(), "received data", data);
      });

When the user click the "test" select element to open it, it will stop receiving data.

Screenshot 2021-10-28 at 11 47 10 am

working example on codesandbox