Skip to content

Commit

Permalink
Add comment explaining use of dummy serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugnion committed Jan 8, 2020
1 parent bd6c883 commit a2dbe49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/controls/src/widget_upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class FileUploadModel extends CoreDOMWidgetModel {

static serializers = {
...CoreDOMWidgetModel.serializers,
// use a dummy serializer for value to circumvent the default serializer.
value: { serialize: (x: any) => x },
};
}
Expand Down

0 comments on commit a2dbe49

Please sign in to comment.