You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can see that the console is reporting an error
Judging that it is ob rerender will cause button to fail to obtain the file value and then report an error. It should be fixed by the buttons plugin
修复方法 (restorative procedure)
在箭头所指位置添加这么一行就好了,修复后在实时/阅读模式下均正常,显示正确,点击效果也正确(仅测试了 link button)
Add this line at the point of the arrow. After repair, it is normal in live/reading mode, the display is correct, and the click effect is correct (only the link button was tested).
(The upper, middle and lower parts of the picture are: modification method, the effect before modification, and the effect after modification)
The text was updated successfully, but these errors were encountered:
LincZero
changed the title
[docs] 修复buttons插件不适应AnyBlock的bug
[docs] 修复buttons插件不适应AnyBlock的bug (fix buttons plugin does not work with plugin AnyBlock)
Sep 26, 2024
存在问题 (existing problem)
#14 (comment)
原因分析 (analysis of causes)
可以看到控制台有报错:
判断是ob的重渲染,会导致button获取file值失败,进而报错。应该由buttons插件那边修。
看了下那边的issue也有类似的问题:shabegom/buttons#212
You can see that the console is reporting an error
Judging that it is ob rerender will cause button to fail to obtain the file value and then report an error. It should be fixed by the buttons plugin
修复方法 (restorative procedure)
在箭头所指位置添加这么一行就好了,修复后在实时/阅读模式下均正常,显示正确,点击效果也正确(仅测试了 link button)
Add this line at the point of the arrow. After repair, it is normal in live/reading mode, the display is correct, and the click effect is correct (only the link button was tested).
(The upper, middle and lower parts of the picture are: modification method, the effect before modification, and the effect after modification)
The text was updated successfully, but these errors were encountered: