Skip to content

Commit

Permalink
fix(Base): Removing apiRef from spread props #210
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmfriedman committed May 3, 2018
1 parent a5dd833 commit 94dab63
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Chip/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class ChipSet extends withFoundation({
adapter: {}
})<ChipSetPropsT> {
render() {
const { ...rest } = this.props;
const { apiRef, ...rest } = this.props;
const { root_ } = this.foundationRefs;
return <ChipSetRoot {...rest} elementRef={root_} />;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class Dialog extends withFoundation({
}

render() {
const { open, onAccept, onCancel, onClose, ...rest } = this.props;
const { open, onAccept, onCancel, onClose, apiRef, ...rest } = this.props;
const { root_ } = this.foundationRefs;

return <DialogRoot {...rest} elementRef={root_} className={this.classes} />;
Expand Down
2 changes: 1 addition & 1 deletion src/FormField/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class FormField extends withFoundation({
static displayName = 'FormField';
render() {
//$FlowFixMe
const { ...rest } = this.props;
const { apiRef, ...rest } = this.props;
const { root_ } = this.foundationRefs;
return <FormFieldRoot {...rest} elementRef={root_} />;
}
Expand Down
1 change: 1 addition & 0 deletions src/Menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export class Menu extends withFoundation({
children,
open,
onClose,
onCancel,
onSelected,
anchorCorner,
...rest
Expand Down
2 changes: 0 additions & 2 deletions src/Radio/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ export class Radio extends withFoundation({
apiRef,
// $FlowFixMe
generatedId,
// $FlowFixMe
mdcElementRef,
...rest
} = this.props;
const labelId = id || this.generatedId;
Expand Down
1 change: 1 addition & 0 deletions src/Select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export class Select extends withFoundation({
box,
className,
rootProps = {},
apiRef,
...rest
} = this.props;

Expand Down
1 change: 1 addition & 0 deletions src/TextField/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export class TextField extends withFoundation({
children,
textarea,
rootProps = {},
apiRef,
...rest
} = this.props;

Expand Down
2 changes: 1 addition & 1 deletion src/TopAppBar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class TopAppBar extends withFoundation({
static displayName = 'TopAppBar';

render() {
const { onNav, ...rest } = this.props;
const { onNav, apiRef, ...rest } = this.props;
const { root_ } = this.foundationRefs;
return (
<TopAppBarRoot {...rest} elementRef={root_} className={this.classes} />
Expand Down

0 comments on commit 94dab63

Please sign in to comment.