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.
Popover
1 parent 8f8b5d6 commit 1aa9d9eCopy full SHA for 1aa9d9e
src/components/Popover/_helpers/cleanPlacementStyle.js
@@ -14,15 +14,6 @@ export default (placementStyle) => {
14
'transform-origin',
15
];
16
17
- if (process.env.NODE_ENV !== 'production') {
18
- const invalidProps = Object.keys(placementStyle).filter((prop) => !validProps.includes(prop));
19
-
20
- if (invalidProps.length > 0) {
21
- // eslint-disable-next-line no-console
22
- console.error(`Invalid prop(s) supplied to the "placementStyle" prop: "${invalidProps.join('", "')}"`);
23
- }
24
25
26
return Object.fromEntries(
27
Object.entries(placementStyle).filter(([prop]) => validProps.includes(prop)),
28
);
0 commit comments