-
Notifications
You must be signed in to change notification settings - Fork 782
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
Get an error after enabling insertRow. #1087
Comments
@fscnick, sorry for lately reply due to my long trip. Could you help me to check the and I'll check this out also, thanks |
@AllenFang Don't be. I'm not using The following is the relative about <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.2/react-dom.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/5.0.2/react-redux.js"></script> |
never mind for the did you have an examples on fiddlejs or a static html with js? I wanna check it, thanks |
Here is the example. Start it by clicking Although the code is slightly tedious, I hope this would give some help. |
@fscnick, thanks, I roughly check your code but still got no idea about this issue. But I think there's no problem on I'll spend some time to try it again, but not sure I can find the root cause and I'm also busy here so ma have some delay.. Sorry |
No need to apologize. This a nice library. I'm glad you are willing to take some time to do that. And hope it would not bother you too much. I will try it, too. |
I have tested this thoroughly and reproduced after a while using a very simplistic and trivial app. The issue stems from react-modal trying to attach to the DOM before it's loaded. |
This is a workaround for AllenFang#1087
This is a workaround for AllenFang#1087
@dminuoso, thanks for your investigation, but what's kind of situation will get this error? |
The problem happens whenever the library is loaded in a place without document available such as loading the library in a There's a few workarounds such as calling Modal.setAppElement(elem) at least once from anywhere when document actually exists, such as any componentWillMount callback. But it's a hack with some drawbacks. However I have a true fix for react-modal for which I will submit a PR later today. |
got it, thanks you 👍 👍 |
I see no PR about this. Is it applied? |
Sorry for that. There is no response for a while. I just wonder to know it is still processing or accepted. I am not sure if I get loss something or not. |
This PR basically addresses this issue in a more flexible way. This was the patch I had originally in mind: |
so this issue seems like fixed on There's any change that I need to do in |
As it stands right now you will have to provide a getAppElement prop to |
@dminuoso, I'll have some investigation in near future and fix it, thanks a lots |
After upgrading to react 16.2 I get exactly the same error. I've updated to "react-bootstrap-table": "^4.2.0". In my own coding I also use "react-modal": "^3.1.7" |
@came sorry for lately reply, |
I get the following error after enabling 'insertRow' props.
The table content shows correctly, but the pagination is malfunctional.
The snippet is below.
What do I miss ?
The text was updated successfully, but these errors were encountered: