button hidden before load
This commit is contained in:
parent
1ca93d6b5a
commit
e7814ef14f
@ -4,7 +4,6 @@ import (
|
||||
g "github.com/maragudk/gomponents"
|
||||
hx "github.com/maragudk/gomponents-htmx"
|
||||
. "github.com/maragudk/gomponents/html"
|
||||
b "github.com/willoma/bulma-gomponents"
|
||||
)
|
||||
|
||||
func Edit() g.Node {
|
||||
@ -14,7 +13,7 @@ func Edit() g.Node {
|
||||
hx.Swap("outerHTML"),
|
||||
hx.SelectOOB("true"),
|
||||
hx.Target("#main"),
|
||||
b.Button(
|
||||
Div(
|
||||
hx.Trigger("load"),
|
||||
hx.Get(BaseUrl+"/htmx/canEdit"),
|
||||
hx.Target("this"),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user