fixed textbox

This commit is contained in:
2023-06-12 09:47:30 +02:00
parent 3e515a8f1a
commit f1b157046e

View File

@@ -45,7 +45,7 @@
</select>
<button id="export-button" onclick="exportReport()">Export</button>
</div>
<textarea id="export-textarea" readonly></textarea>
<textarea id="export-textarea"></textarea>
<script>
const exportTextarea = document.getElementById('export-textarea');
@@ -64,6 +64,7 @@
}
}).then(text => {
exportTextarea.value = text;
exportTextarea.style.height = "auto";
exportTextarea.style.height = exportTextarea.scrollHeight + "px";
}).catch(error => {
exportTextarea.value = 'Error while fetching report';