Skip to content

Commit

Permalink
fix platform warning in list item (ant-design#1276)
Browse files Browse the repository at this point in the history
omit platform prop before pass to div
  • Loading branch information
cncolder authored and lixiaoyang1992 committed Apr 26, 2018
1 parent 4362340 commit 95a6de9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/list/ListItem.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import classNames from 'classnames';
import Touchable from 'rc-touchable';
import { ListItemProps, BriefProps } from './PropsType';
import omit from 'omit.js';

export class Brief extends React.Component<BriefProps, any> {
render() {
Expand Down Expand Up @@ -113,7 +114,7 @@ class ListItem extends React.Component<ListItemProps, any> {
});

const content = <div
{...restProps}
{...omit(restProps, ['platform'])}
onClick={(ev) => {
this.onClick(ev);
}}
Expand Down

0 comments on commit 95a6de9

Please sign in to comment.