Web Serial API removed and added events are never called #34887
Labels
19-x-y
bug 🪲
platform/macOS
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
19.0.8
What operating system are you using?
macOS
Operating System Version
macOS Monterey 12.4
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
I want to update UI when picking a port if a serial port is plugged in or unplugged.
Test Steps:
1, Click button to call
navigator.serial.requestPort()
2, Show a modal to show port list in the
select-serial-port
event handler3, Plug in or unplug a device to check the
serial-port-added
andserial-port-removed
eventsActual Behavior
But the
select-serial-port
andselect-serial-removed
events never called. Did I use these api in a wrong way?Testcase Gist URL
https://gist.github.com/0bbeeaa1c9e8f5affb6b59663870616e
Additional Information
No response
The text was updated successfully, but these errors were encountered: