We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b40227a commit 1c25677Copy full SHA for 1c25677
1 file changed
templates/v3/includes/_field_file.html
@@ -19,17 +19,17 @@
19
<div class="field field--file{% if error %} field--error{% endif %}{% if extra_class %} {{ extra_class }}{% endif %}"
20
{% if alpine_error %}:class="{ 'field--error': {{ alpine_error }} }"{% endif %}
21
{# djlint:off #}
22
- x-data="{
23
- jsReady: false,
+ x-data="{
+ jsReady: false,
24
fileName: ''{% if preview %}, previewUrl: ''{% endif %} }"
25
x-init="
26
jsReady = true;
27
const form = $el.closest('form');
28
if (form) form.addEventListener('reset', () => {
29
fileName = '';
30
{% if preview %}
31
- if (previewUrl) {
32
- URL.revokeObjectURL(previewUrl);
+ if (previewUrl) {
+ URL.revokeObjectURL(previewUrl);
33
previewUrl = '';
34
}
35
{% endif %}
0 commit comments