🐞 fix: Get rid of SonarLint style conflict error

This commit is contained in:
Keith Solomon
2025-02-09 09:47:56 -06:00
parent 1c7f43d7b1
commit 2740050965
2 changed files with 6 additions and 4 deletions

View File

@@ -85,7 +85,7 @@
</div>
<!-- Edit Modal -->
<div id="editModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden">
<div id="editModal" class="fixed inset-0 bg-black bg-opacity-50 items-center justify-center hidden">
<div class="bg-white p-6 rounded-lg shadow-lg w-96">
<h2 class="text-xl font-bold mb-4">Edit Payment</h2>
<form id="editForm" class="space-y-4">

View File

@@ -111,6 +111,7 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('editFormBillName').value = bill.billName;
// Open the modal
document.getElementById('editModal').classList.add('flex');
document.getElementById('editModal').classList.remove('hidden');
}
@@ -191,11 +192,12 @@ document.addEventListener('DOMContentLoaded', () => {
// Event listener for close button in the modal
document.getElementById('editFormCancel').addEventListener('click', () => {
// Close the modal
document.getElementById('editModal').classList.add('hidden');
// Clear modal fields
document.getElementById('editForm').reset();
// Close the modal
document.getElementById('editModal').classList.add('hidden');
document.getElementById('editModal').classList.remove('flex');
});
// On page load