Open hlindley-ccssi opened 7 years ago
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'), }); }