Skip to content

Commit

Permalink
fix: image placeholder (#716)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed Sep 4, 2024
1 parent a6501a0 commit e31d701
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unfold/static/unfold/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ const fileInputUpdatePath = () => {
input.addEventListener("change", (e) => {
const parts = e.target.value.split("\\");
const placeholder =
input.parentNode.parentNode.querySelector("input[type=text]");
input.parentNode.parentNode.parentNode.querySelector(
"input[type=text]"
);
placeholder.setAttribute("value", parts[parts.length - 1]);
});
});
Expand Down

0 comments on commit e31d701

Please sign in to comment.