diff --git a/templates/index.templ b/templates/index.templ
index c58a501..b5f84d7 100644
--- a/templates/index.templ
+++ b/templates/index.templ
@@ -204,8 +204,7 @@ templ DNSRecordRow(record DNSRecord, currentIP string) {
class="btn btn-sm btn-outline-primary me-1"
hx-get={ fmt.Sprintf("/edit-record/%s", record.ID) }
hx-target="#record-modal-content"
- data-bs-toggle="modal"
- data-bs-target="#recordModal"
+ hx-on::after-request="if(event.detail.successful) bootstrap.Modal.getOrCreateInstance(document.getElementById('recordModal')).show()"
>
diff --git a/templates/index_templ.go b/templates/index_templ.go
index ef78652..683c94b 100644
--- a/templates/index_templ.go
+++ b/templates/index_templ.go
@@ -446,14 +446,14 @@ func DNSRecordRow(record DNSRecord, currentIP string) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 27, "\" hx-target=\"#record-modal-content\" data-bs-toggle=\"modal\" data-bs-target=\"#recordModal\">