ng-file-upload icon indicating copy to clipboard operation
ng-file-upload copied to clipboard

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

Open adamreisnz opened this issue 5 years ago • 2 comments

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.

adamreisnz avatar Aug 08 '20 09:08 adamreisnz

+1 also experiencing now

ritute avatar Aug 31 '22 18:08 ritute

did you try changing button to a element?

ersingencturk avatar Nov 30 '22 06:11 ersingencturk