diff --git a/src/components/port-picker/PortsInput.vue b/src/components/port-picker/PortsInput.vue index 2ab2d21b291..366387af5d1 100644 --- a/src/components/port-picker/PortsInput.vue +++ b/src/components/port-picker/PortsInput.vue @@ -112,7 +112,6 @@ export default { }, onChange(event) { if (event.target.value === 'requestpermission') { - event.target.value = 'manual'; EventBus.$emit('ports-input:request-permission'); } else { EventBus.$emit('ports-input:change', event.target.value); diff --git a/src/js/port_handler.js b/src/js/port_handler.js index 24903236376..5e183e38734 100644 --- a/src/js/port_handler.js +++ b/src/js/port_handler.js @@ -288,6 +288,9 @@ PortHandler.updatePortSelect = function (ports) { PortHandler.askPermissionPort = function() { serial.requestPermissionDevice().then(() => { this.check_serial_devices(); + }).catch(() => { + // In the catch we call the check_serial_devices too to change the request permission option from the select for other + this.check_serial_devices(); }); };