File tree 3 files changed +14
-8
lines changed
3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
## Change Log
2
+ ### [ 3.0.2] ( https://github.com/georgipeltekov/ngx-file-drop/compare/v3.0.1...v3.0.2 ) (2018-04-29)
3
+ * Allow drag events to be ignored that originate from document (introduced in 3.0.1) even if using custom styles
4
+
5
+ ### [ 3.0.1] ( https://github.com/georgipeltekov/ngx-file-drop/compare/v3.0.0...v3.0.1 ) (2018-04-25)
6
+ * Conditionally Disable Dropzone and Ignore DragEvents that initiate from within the browser document
7
+
2
8
### [ 3.0.0] ( https://github.com/georgipeltekov/ngx-file-drop/compare/v2.0.5...v3.0.0 ) (2018-03-15)
3
9
* Added better typescript types
4
10
74
80
* Style changes
75
81
76
82
### 1.0.0 (2017-05-25)
77
- * Initial release
83
+ * Initial release
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ngx-file-drop" ,
3
- "version" : " 3.0.1 " ,
3
+ "version" : " 3.0.2 " ,
4
4
"license" : " MIT" ,
5
5
"scripts" : {
6
6
"ng" : " ng" ,
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ export class FileComponent implements OnDestroy {
44
44
) {
45
45
if ( ! this . customstyle ) {
46
46
this . customstyle = 'drop-zone' ;
47
- this . globalStart = this . renderer . listen ( 'document' , 'dragstart' , ( evt ) => {
48
- this . globalDisable = true ;
49
- } ) ;
50
- this . globalEnd = this . renderer . listen ( 'document' , 'dragend' , ( evt ) => {
51
- this . globalDisable = false ;
52
- } ) ;
53
47
}
48
+ this . globalStart = this . renderer . listen ( 'document' , 'dragstart' , ( evt ) => {
49
+ this . globalDisable = true ;
50
+ } ) ;
51
+ this . globalEnd = this . renderer . listen ( 'document' , 'dragend' , ( evt ) => {
52
+ this . globalDisable = false ;
53
+ } ) ;
54
54
}
55
55
56
56
public onDragOver ( event : Event ) : void {
You can’t perform that action at this time.
0 commit comments