Skip to content

Commit 3e505db

Browse files
committed
Avoid unnecessary DOM mount
1 parent 5834160 commit 3e505db

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/controls/src/widget_upload.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export class FileUploadView extends DOMWidgetView {
4848
this.fileInput = document.createElement('input');
4949
this.fileInput.type = 'file';
5050
this.fileInput.style.display = 'none';
51-
this.el.appendChild(this.fileInput);
5251

5352
this.el.addEventListener('click', () => {
5453
this.fileInput.click();

0 commit comments

Comments
 (0)