在与 metaCharacter 结合使用时,扩展事件不一致
作者: scrhartley创建于 2026年9月16日更新于 2026年9月16日
v4 扩展在使用 htmx.trigger 和 api.triggerHtmxEvent 时不一致。结果是,当使用元字符时,用户不得不猜测事件名称(以及如何使用 hx-on)。下面的示例中,您有:
htmx:prompt 和 hx-on|htmx:prompt,而非:
htmx|ws|before|connection 和 hx-on||ws|before|connection(或 hx-on|htmx|ws|before|connection)
内容来源: bigskysoftware/htmx