We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c223c9e commit c8759c4Copy full SHA for c8759c4
1 file changed
wp-react-lib/src/embedded/EmbeddedGateway.jsx
@@ -45,12 +45,20 @@ class EmbeddedGateway extends React.Component {
45
container = div
46
}
47
48
+
49
50
if (component) {
51
const props = {...this.props}
52
const attrs = element.attributes
53
for (let i = attrs.length - 1; i >= 0; i--) {
54
props[attrs[i].name] = attrs[i].value;
55
56
57
+ element.getAttributeNames().forEach((name) => {
58
+ if (name.startsWith('data-')) {
59
+ element.removeAttribute(name);
60
+ }
61
+ });
62
const C = injectIntl(getComponent(component));
63
if (C) {
64
ReactDOM.createRoot(container)
0 commit comments