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

Warning: React does not recognize the scrollLocker #183

Closed
srw4115 opened this issue Dec 26, 2020 · 12 comments · Fixed by react-component/drawer#157
Closed

Warning: React does not recognize the scrollLocker #183

srw4115 opened this issue Dec 26, 2020 · 12 comments · Fixed by react-component/drawer#157

Comments

@srw4115
Copy link

srw4115 commented Dec 26, 2020

Warning: React does not recognize the scrollLocker prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase scrolllocker instead. If you accidentally passed it from a parent component, remove it from the DOM element.

at PortalWrapper

@shaodahong
Copy link
Member

Use Drawer componentt? if use PortalWrapper you need omit scrollLocker

@Clago
Copy link

Clago commented Dec 30, 2020

一样的问题,不知道改了啥。

@tobiasriemenschneider
Copy link

Hi!
Using "antd": "^4.10.0" I'm also getting this error.
Am I doing something wrong or do I need to wait for it to be fixed?
Thanks for any help. 🙏

Bildschirmfoto 2021-01-08 um 07 04 21

@shaodahong
Copy link
Member

Waiting antd 4.10.1 release.

@RabbDream
Copy link

same error,use Tree component in Drawer component

@shaodahong
Copy link
Member

same error,use Tree component in Drawer component

version?

@RabbDream
Copy link

same error,use Tree component in Drawer component

version?

4.10.0

@Clago
Copy link

Clago commented Jan 11, 2021

same error,use Tree component in Drawer component

version?

4.10.1 scrollLocker 修复了。但是 switchScrollingEffect 这个错误出现了。

@RabbDream
Copy link

same error,use Tree component in Drawer component

version?

4.10.1 scrollLocker 修复了。但是 switchScrollingEffect 这个错误出现了。

悄无声息的周末加班发了个版本,我都没注意,我去更新一下

afc163 pushed a commit to react-component/drawer that referenced this issue Jan 12, 2021
* chore: remove useless code fixes ant-design/ant-design#28810 fixes react-component/util#183

* fix ts type

* update snapshots
@KrishnaPG
Copy link

Encountering same error with 4.10.0 of antd

image

@shaodahong
Copy link
Member

Encountering same error with 4.10.0 of antd

You need upgrade antd to latest version

@tobiasriemenschneider
Copy link

Yes, updating to the latest version (4.10.2) fixed it for me. 👍
Thank You!!

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

Successfully merging a pull request may close this issue.

6 participants