Skip to content

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

Open

Description

@consistent-k

这行代码里的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

Activity

  1. consistent-k commented on Oct 14, 2024

    @consistent-k
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions