Skip to content

Commit 2c27860

Browse files
authored
Assign string value to hidden input (#81)
Input.value expects a string not a boolean value.
1 parent 3a3d3bc commit 2c27860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3file/static/s3file/js/s3file.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
let form = submitButton.closest('form')
8585
const submitInput = document.createElement('input')
8686
submitInput.type = 'hidden'
87-
submitInput.value = submitButton.value || true
87+
submitInput.value = submitButton.value || '1'
8888
submitInput.name = submitButton.name
8989
form.appendChild(submitInput)
9090
}

0 commit comments

Comments
 (0)