Alway prefer custom onFinishOne callback if it is set

This commit is contained in:
Hadi Nategh 2020-04-22 14:19:12 +02:00
parent 160334a4ac
commit eb795d523b

View File

@ -665,7 +665,7 @@ export class et2_file extends et2_inputWidget
event.data = this;
// Callback
if(typeof this.onFinishOne == 'function')
if(typeof this.onFinishOne == 'function' && !this.options.onFinishOne)
{
this.onFinishOne(event, response, name);
}