Skip to content

Commit 6b0a434

Browse files
committed
fix: type file uses storage
1 parent b5122c1 commit 6b0a434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getValue.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ HTMLHeadingElement.prototype.getValue = function () {
1818
// TODO: check if using a a switch case will provide better performance
1919
const getValue = (element) => {
2020
let value = element.value || element.getAttribute('value') || "";
21-
if (element.hasAttribute('component') || element.hasAttribute('plugin')) {
21+
if (element.hasAttribute('component') || element.hasAttribute('plugin') || element.type === 'file' || element.getAttribute('type') === 'file') {
2222
value = storage.get(element)
2323
storage.delete(element)
2424
return value

0 commit comments

Comments
 (0)