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

message 弹出后页面没有响应了 #5019

Closed
crapthings opened this issue Feb 23, 2017 · 5 comments
Closed

message 弹出后页面没有响应了 #5019

crapthings opened this issue Feb 23, 2017 · 5 comments

Comments

@crapthings
Copy link

crapthings commented Feb 23, 2017

看上去是因为 message 复制了一个 react 根节点然后把 message box append 到新的节点了

antd 2.7.2

meteor + flow router + react-mounter 最新版本

osx browser chrome 最新版本

wx20170223-125656 2x

FlowRouter 进入路由执行了 action

mounter 负责和 render 类似的行为把 组件放进 layout 中

https://github.com/kadirahq/react-mounter/blob/master/lib/client.js

或者说我可以通过配置一下 react mounter 来兼容 antd ?

@afc163
Copy link
Member

afc163 commented Feb 23, 2017

Sorry about your problem but it works fine in http://ant.design/components/message/ , and I know nothing about meteor. 😅

You should check your code first and try to provide a reproducible demo: http://codepen.io/benjycui/pen/KgPZrE?editors=001

@afc163 afc163 closed this as completed Feb 23, 2017
@afc163 afc163 reopened this Feb 23, 2017
@crapthings
Copy link
Author

crapthings commented Feb 23, 2017

看一下你们源码 兼容性确实不是很好

https://github.com/react-component/notification/blob/master/src/Notification.jsx#L93

至少让我们 append 到一个已有的容器里,修一下吧

感觉好像用了你们就不能用别的了,这么大公司拥抱的心态

ps: 手动把那个message 的节点删掉,页面就可以点击了

@afc163
Copy link
Member

afc163 commented Feb 23, 2017

If something of our code can be improved to make your code work, just propose PR.

@afc163
Copy link
Member

afc163 commented Feb 24, 2017

@lock
Copy link

lock bot commented May 2, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants