Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Android app crashes with input type file when we use `accept='.txt' #5358

Closed
digaus opened this issue Jan 8, 2022 · 1 comment · Fixed by #5363
Closed

bug: Android app crashes with input type file when we use `accept='.txt' #5358

digaus opened this issue Jan 8, 2022 · 1 comment · Fixed by #5363

Comments

@digaus
Copy link
Contributor

digaus commented Jan 8, 2022

Bug Report

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 3.3.4
  @capacitor/core: 3.3.4
  @capacitor/android: 3.3.4
  @capacitor/ios: 3.3.4

Installed Dependencies:

  @capacitor/core: 3.3.4
  @capacitor/cli: 3.2.3
  @capacitor/android: 3.3.4
  @capacitor/ios: 3.3.4

Platform(s)

Android

Current Behavior

Android app crashes with input type file when we use accept='.txt'

Expected Behavior

No crash

Code Reproduction

            const elem: HTMLInputElement = window.document.createElement('input');
            elem.type = 'file';
            elem.accept = '.txt'
            elem.style.height = '0px';
            elem.style.width = '0px';
            elem.style.border = '0px';
            elem.style.position = 'fixed';
            elem.style.top = '50%';
            elem.style.left = '50%';
            document.body.appendChild(elem);
            elem.click();

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants