Project

General

Profile

Actions

Feature #26651

open

Support component re-mounting on partials from AJAX

Added by Ondřej Pražák about 5 years ago. Updated about 5 years ago.

Status:
Ready For Testing
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

We use mount_react_component helper that inserts script, which takes care of mounting React components. The problem is that script tags do not evaluate when inserted into DOM as innerHTML. When AJAX calls to retrieve partial which is inserted into page, the script does not run and react component is not mounted.

We should make sure that react components do not disappear when they are in a partial that is rendered via AJAX.


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #26735: Mount react components from web componentsClosedOndřej EzrActions
Blocks Ansible - Bug #26645: Ansible roles switcher not mounted after form partial re-renderClosedOndřej PražákActions
Actions

Also available in: Atom PDF