Closed karolis-k closed 5 years ago
If I set it to true, it disables, file selection, but not file drop.
I looked at source code and for me it seems that check is missing in ngfDrop event. I think it should be something like this:
ngfDrop
@HostListener('drop', ['$event']) onDrop(event:Event):void { this.closeDrags() // Condition below added: if (this.fileDropDisabled){ return; } let files = this.eventToFiles(event) if(!files.length)return this.stopEvent(event); this.handleFiles(files) }
P.S. naming for this property seems to be not correct, or it should belong to ngfDrop rather than ngf.
ngf
Will let ya know
Hi. Any progress here?
If y’all need this, make a pull request. I don’t need it and I’m swamped
Completed
If I set it to true, it disables, file selection, but not file drop.
I looked at source code and for me it seems that check is missing in
ngfDrop
event. I think it should be something like this:P.S. naming for this property seems to be not correct, or it should belong to
ngfDrop
rather thanngf
.