We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modal
2.68.2
const m = modal.confirm(config); m.update({content: "new Content"}) m.destroy()
update和destroy没有生效
No response
https://semi.design/zh-CN/show/modal 修改useHooks下的代码 modal.confirm(config) 为
modal.confirm(config)
- OS: Mac 15.0.1 - browser: Chrome 130.0.6723.117
看了应该是这里的ref绑定的问题,创建完立马调用update会因为没有绑定成功导致未执行 https://github.com/DouyinFE/semi-design/blob/main/packages/semi-ui/modal/useModal/index.tsx
把上面复现代码改成
const m = modal.confirm(config); setTimeout(() => {m.update({content: "new Content"})}, 100)
就能更新了,但是很不优雅,会有闪动
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Which Component
Modal
Semi Version
2.68.2
Current Behavior
update和destroy没有生效
Expected Behavior
No response
Steps To Reproduce
https://semi.design/zh-CN/show/modal
修改useHooks下的代码
modal.confirm(config)
为ReproducibleCode
No response
Environment
Anything else?
看了应该是这里的ref绑定的问题,创建完立马调用update会因为没有绑定成功导致未执行
https://github.com/DouyinFE/semi-design/blob/main/packages/semi-ui/modal/useModal/index.tsx
把上面复现代码改成
就能更新了,但是很不优雅,会有闪动
The text was updated successfully, but these errors were encountered: