fix: auto reload on multiple browser windows/tabs closes #6; fix: chatroom example not compiling

This commit is contained in:
Joao Goncalves
2025-11-12 02:31:01 -01:00
parent 779718a088
commit d282773379
7 changed files with 63 additions and 83 deletions

View File

@@ -83,7 +83,7 @@ func (a *actionTrigger) OnChange(options ...ActionTriggerOption) h.H {
return h.Data("on:change__debounce.200ms", buildOnExpr(actionURL(a.id), &opts))
}
// OnEnterKey returns a via.h DOM attribute that triggers when a key is pressed.
// OneyDown returns a via.h DOM attribute that triggers when a key is pressed.
// key: optional, see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
// Example: OnKeyDown("Enter")
func (a *actionTrigger) OnKeyDown(key string, options ...ActionTriggerOption) h.H {