Skip to content

Commit

Permalink
add changes to changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
rikschennink committed Sep 27, 2019
1 parent f16f935 commit eefd4b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 4.7.2

- Fix issue where iOS 10 would throw an error when calling `delete` on a dataset property
- Fix issue with `onwarning` being called on incorrect element


## 4.7.1

- Fix problem where directories with over 100 files weren't read correctly.
Expand Down
29 changes: 3 additions & 26 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,18 @@
</head>
<body>

<style>body {max-width:320px;}</style>
<input type="file" multiple class="foo"/>

<input type="file" multiple class="bar"/>
<input type="file"/>

<script src="https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.min.js"></script>
<script src="https://unpkg.com/filepond-polyfill"></script>
<script src="./dist/filepond.js"></script>

<script>
// Get a reference to the file input element
var inputElement = document.querySelector('.foo');

// Create the FilePond instance
var pondA = FilePond.create(inputElement, {
dropOnPage: true,
dropOnElement: true,
maxFiles: 2,
onwarning: err => {
console.log('foo: error', err)
}
});

// Get a reference to the file input element
var inputElement2 = document.querySelector('.bar');
var inputElement = document.querySelector('input[type="file"]');

// Create the FilePond instance
var pondB = FilePond.create(inputElement2, {
dropOnPage: true,
dropOnElement: true,
maxFiles: 3,
onwarning: err => {
console.log('bar: error', err)
}
});
var pond = FilePond.create(inputElement);
</script>

</body>
Expand Down

0 comments on commit eefd4b4

Please sign in to comment.