You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/03 08:41:44 UTC

[GitHub] [cordova-plugin-camera] aidanas opened a new issue #606: "Choose file" button not removed when file selector is canceled.

aidanas opened a new issue #606:
URL: https://github.com/apache/cordova-plugin-camera/issues/606


   # Bug Report
   
   ## Problem
   While running an app built for electron platform (same issue on browser platform too) using the plugin and choosing to select from file it adds "Choose File" button to the app. When pressed it opens a file selector allowing to select a file. If we press "Cancel" on the dialog then the dialog is closed but "Choose File" button remains within the DOM with no callbacks called. So the only way to remove it is to actually choose a file.
   
   ### What is expected to happen?
   * Either one of the callbacks to be called so we can manually remove `input` element from the DOM.
   * Or `input` element removed from the DOM by the plugin.
   
   
   ### What does actually happen?
   * `input.cordova-camera-select` element remains within the DOM. 
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `navigator.camera.getPicture(val => console.log(val), err => console.error(err), { quality: 50, destinationType: 0, sourceType: 0, correctOrientation: true });`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   - Electron and Browser platforms
   
   
   
   ### Version information
   - MacOS 10.15.5
   - Cordova 9
   - `"cordova-plugin-camera": "^4.1.0"`
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org