DouyinFE / semi-design

🚀A modern, comprehensive, flexible design system and React UI library. 🎨 Provide more than 2800+ Design Tokens, easy to build your design system. Make Semi Design to Any Design. 🧑🏻‍💻 Design to Code in one click

Home Page:https://semi.design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] ReactResizeObserver.handleResizeEventTriggered 抛出异常

nekocode opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

ReactResizeObserver

Semi Version

2.53.0

Current Behavior

升级库到 2.53.0 后有页面报错:
image

image

看源码这个参数时可空的,但是使用的时候没有判断是否为空:
image

Expected Behavior

No response

Steps To Reproduce

No response

ReproducibleCode

No response

Environment

- OS: MacOS
- browser: Chrome

Anything else?

No response

这个是哪个组件报的错?

这个是哪个组件报的错?

具体我也不清楚,断点后发现传入的 props 是 undefined

image

@shijiatongxue 我用排除法试了下,应该是 Form.TextArea 这个组件,设置了 autosize 参数为 true 后就有这个问题

2.53.2 已修复

@shijiatongxue 我用排除法试了下,应该是 Form.TextArea 这个组件,设置了 autosize 参数为 true 后就有这个问题

现在我们这样改应该不会报错了,但是我没有复现这个问题。有最小的复现代码吗?

@shijiatongxue 我用排除法试了下,应该是 Form.TextArea 这个组件,设置了 autosize 参数为 true 后就有这个问题

现在我们这样改应该不会报错了,但是我没有复现这个问题。有最小的复现代码吗?

你看看这个分支 https://github.com/nekocode/semi-design/tree/issue-2095
好像是在 next.js 里使用才会有问题:

image