Project

General

Profile

« Previous | Next » 

Revision b976723b

Added by Avi Sharvit almost 6 years ago

Fixes #23290 - Unmount components before dom-update

  • provide core `tfm.reactMounter.unmountComponents` function
  • unmount components before saving host and manually update the dom with
    jquery

View differences:

app/assets/javascripts/host_edit.js
clear_errors();
animate_progress();
// clean the dom from react components before replacing the dom-content
tfm.reactMounter.unmountComponents('#content');
$.ajax({
type:'POST',
url: url,

Also available in: Unified diff