Skip to content

Commit

Permalink
fix: type file uses storage
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jun 15, 2024
1 parent b5122c1 commit 6b0a434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b0a434

Please sign in to comment.