File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 7.1.4
2
+
3
+ Fix bug where using an ID for selecting the dropzone element would make the lib crash. fix #12
4
+
1
5
## 7.1.3
2
6
3
7
A very small patch release with a fix regarding the ` form ` attribute of the hidden ` input ` field. See dropzone/dropzone #2300 . PR #11 by @bancer .
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @deltablot/dropzone" ,
3
- "version" : " 7.1.3 " ,
3
+ "version" : " 7.1.4 " ,
4
4
"description" : " Handles drag and drop of files for you." ,
5
5
"keywords" : [
6
6
" dragndrop" ,
Original file line number Diff line number Diff line change @@ -1717,7 +1717,7 @@ Dropzone.options = {};
1717
1717
// Returns the options for an element or undefined if none available.
1718
1718
Dropzone . optionsForElement = function ( element ) {
1719
1719
// Get the `Dropzone.options.elementId` for this element if it exists
1720
- if ( element . getAttribute ( "id" ) ) {
1720
+ if ( element . getAttribute ( "id" ) && typeof Dropzone . options !== 'undefined' ) {
1721
1721
return Dropzone . options [ camelize ( element . getAttribute ( "id" ) ) ] ;
1722
1722
} else {
1723
1723
return undefined ;
You can’t perform that action at this time.
0 commit comments