Skip to content

Commit

Permalink
fix chrome 52+ input file label open slow (slab#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
youhan26 authored and Tim McClure committed Dec 12, 2016
1 parent 51805fb commit fc68985
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 fc68985

Please sign in to comment.