Skip to content

Commit db0f3b9

Browse files
authored
fix: fileinput placeholder (#740)
1 parent 0b56e65 commit db0f3b9

File tree

1 file changed

+3
-1
lines changed
  • src/unfold/static/unfold/js

1 file changed

+3
-1
lines changed

src/unfold/static/unfold/js/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ const fileInputUpdatePath = () => {
124124
input.addEventListener("change", (e) => {
125125
const parts = e.target.value.split("\\");
126126
const placeholder =
127-
input.parentNode.parentNode.querySelector("input[type=text]");
127+
input.parentNode.parentNode.parentNode.querySelector(
128+
"input[type=text]"
129+
);
128130
placeholder.setAttribute("value", parts[parts.length - 1]);
129131
});
130132
});

0 commit comments

Comments
 (0)