Project

General

Custom queries

Profile

Actions

Feature #26651

open

Support component re-mounting on partials from AJAX

Added by Ondřej Pražák about 6 years ago. Updated about 6 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
#1

Updated by Ondřej Pražák about 6 years ago

  • Blocks Bug #26645: Ansible roles switcher not mounted after form partial re-render added
#2

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6699 added
#6

Updated by Ondřej Ezr about 6 years ago

  • Related to Feature #26735: Mount react components from web components added
Actions

Also available in: Atom PDF