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.
resetAttributes
shouldReset
1 parent 3709efa commit 1c519dcCopy full SHA for 1c519dc
README.md
@@ -78,12 +78,12 @@ You can also use a selector instead of an id.
78
79
### Reset styling
80
81
-The `shouldReset` prop can be used to remove any classes and styles from the DOM node we are rendering to:
+The `resetAttributes` prop can be used to remove any attributes from the DOM node we are rendering to:
82
83
```js
84
// All styles and classes from the node with id "header" will be cleared
85
-<ElementPortal id="header" shouldReset>
86
- <div>
+<ElementPortal id="header" resetAttributes={['class', 'style']}>
+ <div className="some-other-class">
87
...
88
</div>
89
</ElementPortal>
0 commit comments