preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
949 stars 148 forks source link

Implement createPortal not work as expect #494

Open doxiaodong opened 6 years ago

doxiaodong commented 6 years ago

Which cause antd-mobile picker broken.

marvinhagemeister commented 6 years ago

Please post more information besides just "doesn't work". What exactly is the issue you are experiencing? Do you get an error message in the console? Do you have a snippet or an excerpt of your code which reproduces the issue?

doxiaodong commented 6 years ago

Sorry.

  1. without createPortal implement https://img.tristana.cc/tmp/before.mov
  2. with createPortal implement https://img.tristana.cc/tmp/after.mov

you can clone https://github.com/ant-design/ant-design-mobile and then

  1. change preact-compat to 3.18.2
  2. npm install
  3. npm start
  4. open http://localhost:8002/components/picker