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

adding component refreshes page #1

Open
hlindley-ccssi opened this issue Nov 2, 2016 · 4 comments
Open

adding component refreshes page #1

hlindley-ccssi opened this issue Nov 2, 2016 · 4 comments

Comments

@hlindley-ccssi
Copy link

hlindley-ccssi commented Nov 2, 2016

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'), }); }

@Raathigesh
Copy link
Owner

Would you be able to provide a sample repo where this issue is re-creatable ?

@hlindley-ccssi
Copy link
Author

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!!!

@Raathigesh
Copy link
Owner

This PR should fix the issue.

@hlindley-ccssi
Copy link
Author

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!

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

No branches or pull requests

2 participants