danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.6k forks source link

Click on button with ngf-select no longer working in latest Chrome #2140

Open adamreisnz opened 3 years ago

adamreisnz commented 3 years ago

This used to work fine for years, but appears to have stopped working. Clicking on a button with ngf-select doesn't work anymore (doesn't do anything).

I've traced to where it gets, and it does reach fileElem[0].click(); but it appears that click action is no longer being accepted or allowed by Chrome.

<button class="Button Button--success" ng-model="$ctrl.file" ngf-select="$ctrl.selectedFile($file)" ngf-accept="text/csv" ngf-pattern=".csv">
  <i class="Icon">file_upload</i> Choose a file
</button>

This code has previously worked, and hasn't changed since.

Latest version, 12.2.13.

ritute commented 1 year ago

+1 also experiencing now

ersingencturk commented 1 year ago

did you try changing button to a element?