Skip to content

Commit

Permalink
fix chrome 52+ input file label open slow (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
youhan26 authored and jhchen committed Nov 3, 2016
1 parent 028cdfc commit 50a1713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ BaseTheme.DEFAULTS = extend(true, {}, Theme.DEFAULTS, {
if (fileInput == null) {
fileInput = document.createElement('input');
fileInput.setAttribute('type', 'file');
fileInput.setAttribute('accept', 'image/*');
fileInput.setAttribute('accept', 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon, image/x-quicktime');
fileInput.classList.add('ql-image');
fileInput.addEventListener('change', () => {
if (fileInput.files != null && fileInput.files[0] != null) {
Expand Down

0 comments on commit 50a1713

Please sign in to comment.