百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#809·stimulus

自定义 `targetAttributeForScope` 会中断目标生命周期回调

作者: koenkivits创建于 2025年1月21日更新于 2025年1月21日

在使用自定义的 targetAttributeForScope 回调函数时, 目标连接/断开回调函数 不再起作用。这似乎是因为 TargetObserver 硬编码了默认属性格式:

内容来源: hotwired/stimulus

查看 GitHub 原文在 GitHub 查看讨论