diff --git a/src/getValue.js b/src/getValue.js index 494d2ee..d86bcfc 100644 --- a/src/getValue.js +++ b/src/getValue.js @@ -18,7 +18,7 @@ HTMLHeadingElement.prototype.getValue = function () { // TODO: check if using a a switch case will provide better performance const getValue = (element) => { let value = element.value || element.getAttribute('value') || ""; - if (element.hasAttribute('component') || element.hasAttribute('plugin')) { + if (element.hasAttribute('component') || element.hasAttribute('plugin') || element.type === 'file' || element.getAttribute('type') === 'file') { value = storage.get(element) storage.delete(element) return value