-
Notifications
You must be signed in to change notification settings - Fork 36
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
adding component refreshes page #1
Comments
Would you be able to provide a sample repo where this issue is re-creatable ? |
Here you go: https://github.com/hlindley-ccssi/dazzle-tester visit the url: http://localhost:3000/#/app/myData after npm install and npm start add a component from the modal and see that it defaults back to the index route. Thanks again for any help!!! |
This PR should fix the issue. |
Thanks soo much. I'm new to React so i thought it was something react-related and i was looking in the wrong place. Very nice library you have here! |
I'm working on integrating the demo into my own project but I'm having issues when adding components. Each time i try to add a component, the page is refreshed back to the index route. I currently have the demo code in a nested route. thanks in advance for any help on this!
ps: i tried to revert to react 14.8 and i'm still getting the same issue as in 15.3. Perhaps something to do with the update that occurs after adding a widget?
pss: interestingly, if i avoid the widget dialog box and hard code the widget name it works:
onAdd = (layout, rowIndex, columnIndex) => { // Add another Greetings Widget this.setState({ layout: addWidget(layout, rowIndex, columnIndex, 'MyData'), }); }
The text was updated successfully, but these errors were encountered: