diff --git a/packages/devui/src/utils/createThemedComponent.js b/packages/devui/src/utils/createThemedComponent.js
index 060ebea5..019c4035 100644
--- a/packages/devui/src/utils/createThemedComponent.js
+++ b/packages/devui/src/utils/createThemedComponent.js
@@ -3,11 +3,11 @@ import getDefaultTheme from '../themes/default';
import { withTheme } from 'styled-components';
export default (UnthemedComponent) => (props) =>
- props.theme.type ? (
+ props.theme && props.theme.type ? (
withTheme()
) : (
// used outside of container (theme provider)
-
+
);
// TODO: memoize it?
diff --git a/packages/devui/tests/__snapshots__/Select.test.js.snap b/packages/devui/tests/__snapshots__/Select.test.js.snap
index b1cf980a..65eeb048 100644
--- a/packages/devui/tests/__snapshots__/Select.test.js.snap
+++ b/packages/devui/tests/__snapshots__/Select.test.js.snap
@@ -2,112 +2,156 @@
exports[`Select renders correctly 1`] = `
`;
exports[`Select renders with props 1`] = `
-
- One
-
-
-
-
+ Select...
+ class="css-ybs8ec-Input"
+ >
+
+
-
+
+
+
+
+
-
-
-
-
+
+
`;
exports[`Select should select another option 1`] = `
-
+
`;
exports[`Select shouldn't find any results 1`] = `
-
-
-
-
-
-
-
-
- No results found
+
+
+
+
+
+
+
+
+
+
+ No options
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
`;