bug: IonInput's onIonChange not fired on Safari when type="file" and file was selected
See original GitHub issueBug Report
Ionic version: [ ] 4.x [x] 5.x
Safari 13.0.5 on macOS 10.15
Current behavior:
IonInput
’s onIonChange
is not fired when file was selected
Expected behavior:
IonInput
’s onIonChange
is fired when file was selected
Steps to reproduce:
<IonInput type="file" onIonChange={e => console.log('onIonChange', e)} />
Other information: Works on Firefox though
Ionic info:
Ionic:
Ionic CLI : 6.10.1 (/Users/lars/.config/yarn/global/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 5.2.2
Capacitor:
Capacitor CLI : 2.0.2
@capacitor/core : 2.2.0
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v14.4.0 (/usr/local/Cellar/node/14.4.0/bin/node)
npm : 6.14.4
OS : macOS Catalina
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
App Rejected - Ion-Input Login Iss…
I am using React + Ionic/Capacitor for my iOS app and keep getting my app rejected due to the reviewer being unable to...
Read more >javascript file input onchange not working [ios safari only]
onchange is not triggered until the Client actually selects a file or files. .click() may not work in some Browsers on <input type='file'...
Read more >ionic Archives
Compare and contrast Flutter and Ionic to help select the framework most ... lines="none"> <IonInput value={title} placeholder="Title" onIonChange={e ...
Read more >react hook form two submit buttons
I had the same problem and I resolved it the following way: I have two buttons, the first bottom validates and submits the...
Read more >onIonChange is triggering more than one input on Ionic 5 ...
There seems to be an issue with onIonChange event due to which on first input it gets triggered on every IonInput and returns...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks @liamdebeasi. We can easily go with an alternative, non-Ionic solution. Semantically I understand why you don’t want your
ion-text
component to support files. Give the broad references oftype="file"
in the docs, I thought you overlooked the file upload feature. I’m looking forward to the release of v6!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 Ionic, please create a new issue and ensure the template is fully filled out.