fix: Search button would stay on top of sidepanel when it was open.
This commit is contained in:
@@ -59,8 +59,9 @@ struct PurchaseOrderTable: HTML {
|
||||
div(.class("btn-row")) {
|
||||
if context != .search {
|
||||
button(
|
||||
.id("btn-search"),
|
||||
.class("btn-primary"), .style("position: absolute; top: 80px; right: 20px;"),
|
||||
.hx.get(route: .purchaseOrders(.search(.context(.employee)))),
|
||||
.hx.get(route: .purchaseOrders(.search(.context(.employee, table: true)))),
|
||||
.hx.target(.body),
|
||||
.hx.swap(.outerHTML.transition(true).swap("0.5s")),
|
||||
.hx.pushURL(true)
|
||||
|
||||
Reference in New Issue
Block a user