diff --git a/src/components/SingleSelectField/SingleSelectField.tsx b/src/components/SingleSelectField/SingleSelectField.tsx index 7b3082b00..fa2a051d8 100644 --- a/src/components/SingleSelectField/SingleSelectField.tsx +++ b/src/components/SingleSelectField/SingleSelectField.tsx @@ -10,6 +10,7 @@ import { import { SelectProps } from "@material-ui/core/Select"; import { makeStyles } from "@saleor/macaw-ui"; import classNames from "classnames"; +import clsx from "clsx"; import React from "react"; import { FormattedMessage } from "react-intl"; @@ -31,6 +32,9 @@ const useStyles = makeStyles( }, paper: { maxHeight: `calc(${singleSelectFieldItemHeight}px * 10 + ${singleSelectFieldItemHeight}px * 0.5)` + }, + disabledMenuItem: { + pointerEvents: "none" } }), { name: "SingleSelectField" } @@ -127,6 +131,7 @@ export const SingleSelectField: React.FC = props => { choices.map(choice => ( `; +exports[`Storyshots Generics / SingleSelectField with disabled options 1`] = ` +
+
+
+
+
+
+
+
+`; + exports[`Storyshots Generics / SingleSelectField with error hint 1`] = `
+ )) + .add("with disabled options", () => ( + ));