chore: fix file reader input positioning

This commit is contained in:
Aman Harwara
2023-01-21 15:55:32 +05:30
parent 2d63b7431a
commit 98f6cbd7d0

View File

@@ -28,7 +28,13 @@ function createFileInputOrReturnExisting(): HTMLInputElement {
fileInput = document.createElement('input')
fileInput.id = FileInputId
fileInput.type = 'file'
fileInput.className = 'absolute top-0 left-0 -z-50 h-px w-px opacity-0'
fileInput.style.position = 'absolute'
fileInput.style.top = '0'
fileInput.style.left = '0'
fileInput.style.height = '1px'
fileInput.style.width = '1px'
fileInput.style.opacity = '0'
fileInput.style.zIndex = '-50'
fileInput.multiple = true
document.body.appendChild(fileInput)