Actions
Bug #23290
closedReact + Turbolinks integration break when submitting forms
Difficulty:
Triaged:
No
Description
In the react-engine, we listen to turbolinks to clean all the react components when moving between pages:
https://github.com/theforeman/foreman/blob/develop/webpack/assets/javascripts/react_app/common/MountingService.js#L15
When performing form-submit (edit host, save), the event isn't triggering and we got the same components mounted twice into the dom.
For example:
go to hosts > click edit > click submit > click the breadcrumb sibling selector and pick another host.
its lands in another_host/edit because it uses the breadcrumb-bar from the previews mounting.
Actions