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

【兼容性问题】低版本Chrome不支持getRootNode #882

Open
consistent-k opened this issue Oct 14, 2024 · 1 comment
Open

【兼容性问题】低版本Chrome不支持getRootNode #882

consistent-k opened this issue Oct 14, 2024 · 1 comment

Comments

@consistent-k
Copy link

consistent-k commented Oct 14, 2024

这行代码里的getRootNode不兼容低于54版本的Chrome浏览器,求解。

https://github.com/react-component/picker/blob/master/src/PickerInput/RangePicker.tsx#L431

image

另一个组件SinglePicker的点击事件是另一种处理 这个组件在Chrome低版本上没问题
https://github.com/react-component/picker/blob/master/src/PickerInput/SinglePicker.tsx#L360

@consistent-k
Copy link
Author

@zombieJ 求帮忙看下这个是加个问号 const rootNode = (event.target as HTMLElement)?.getRootNode(); 还是和改成和SinglePicker那种处理就行

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

No branches or pull requests

1 participant