Skip to content
New issue

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

@ice/appear 在 children 设置 ref 方法时事件无效 #6427

Closed
fyangstudio opened this issue Jul 28, 2023 · 0 comments · Fixed by #6432
Closed

@ice/appear 在 children 设置 ref 方法时事件无效 #6427

fyangstudio opened this issue Jul 28, 2023 · 0 comments · Fixed by #6432
Assignees
Labels

Comments

@fyangstudio
Copy link
Collaborator

Describe the bug

@ice/appear 的 VisibilityChange 组件,

其 child 组件的 ref 属性若指定为函数(如 ref={(ref) => someRef.current = ref}),VisibilityChange 无法正确处理
复现 DEMO:
image

原因应该是这里 不能解构 函数
image

Expected behavior

正常触发 onAppear onDisappear

Actual behavior

No response

Version of ice.js

@ice/appear@0.1.5

Content of build.json or ice.config.mts

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants