Skip to content

Commit 9d03779

Browse files
authored
fix: uui-dropzone should set the 'accept' attribute (#662)
1 parent 8e778a7 commit 9d03779

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/uui-file-dropzone/lib/uui-file-dropzone.element.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class UUIFileDropzoneElement extends LabelMixin('', LitElement) {
2121

2222
private _acceptedFileExtensions: string[] = [];
2323
private _acceptedMimeTypes: string[] = [];
24+
private _accept = '';
2425

2526
/**
2627
* Comma-separated list of accepted mime types or file extensions (denoted with a `.`).
@@ -57,6 +58,12 @@ export class UUIFileDropzoneElement extends LabelMixin('', LitElement) {
5758
this._acceptedMimeTypes = [];
5859
this._acceptedFileExtensions = [];
5960
}
61+
const old = this._accept;
62+
this._accept = value;
63+
this.requestUpdate('accept', old);
64+
}
65+
public get accept(): string {
66+
return this._accept;
6067
}
6168

6269
/**

0 commit comments

Comments
 (0)