From 1c7db8183dabe6ed601390898eff3ca756945977 Mon Sep 17 00:00:00 2001
From: Dan <5727701+dan-j@users.noreply.github.com>
Date: Tue, 8 Aug 2017 10:07:24 +1000
Subject: [PATCH] [material-ui] Added missing prop definitions for
---
types/material-ui/index.d.ts | 4 ++++
types/material-ui/material-ui-tests.tsx | 11 +++++++++++
2 files changed, 15 insertions(+)
diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts
index 9cacfe1136..f248898581 100644
--- a/types/material-ui/index.d.ts
+++ b/types/material-ui/index.d.ts
@@ -1229,6 +1229,7 @@ declare namespace __MaterialUI {
interface DropDownMenuProps {
//
is the element that gets the 'other' properties
+ anchorOrigin?: propTypes.origin;
animated?: boolean;
animation?: React.ComponentClass;
autoWidth?: boolean;
@@ -1239,13 +1240,16 @@ declare namespace __MaterialUI {
labelStyle?: React.CSSProperties;
listStyle?: React.CSSProperties;
maxHeight?: number;
+ menuItemStyle?: React.CSSProperties;
menuStyle?: React.CSSProperties;
+ multiple?: boolean;
onChange?(e: TouchTapEvent, index: number, menuItemValue: any): void;
onClose?(e: TouchTapEvent): void;
openImmediately?: boolean;
selectedMenuItemStyle?: React.CSSProperties;
selectionRenderer?(value: any, menuItem: any): void;
style?: React.CSSProperties;
+ targetOrigin?: propTypes.origin;
underlineStyle?: React.CSSProperties;
value?: any;
}
diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx
index 4321423041..a9de543119 100644
--- a/types/material-ui/material-ui-tests.tsx
+++ b/types/material-ui/material-ui-tests.tsx
@@ -2764,6 +2764,17 @@ class DropDownMenuOpenImmediateExample extends React.Component<{}, {value?: numb
}
}
+const DropDownMenuAnchorExample: React.SFC<{}> = () => (
+
+
+
+
+);
+
const items: Array> = [];
for (let i = 0; i < 100; i++) {
items.push();