We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bf8cc0 commit 9bc5194Copy full SHA for 9bc5194
lib/assets/javascripts/react_ujs_p.js
@@ -46,9 +46,11 @@
46
var nodes = React.ujs.findDOMNodes();
47
48
for (var i = 0; i < nodes.length; ++i) {
49
+ var node = nodes[i];
50
- React.unmountComponentAtNode(nodes[i]);
51
-
+ React.unmountComponentAtNode(node);
52
+ // now remove the `data-react-class` wrapper as well
53
+ node.parentElement && node.parentElement.removeChild(node);
54
}
55
56
};
0 commit comments