Skip to content

Commit

Permalink
[Form components] fixes regarding to the pull-request review
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Shulipa committed May 16, 2016
1 parent 72995e6 commit 15e4a22
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/DatePicker/CalendarMonth.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class CalendarMonth extends Component {
<DayButton
date={day}
disabled={disabled}
style={Object.assign({}, disabled && {cursor: 'not-allowed'})}
style={{
cursor: disabled ? 'not-allowed' : 'inherit',
}}
key={`db${(i + j)}`}
onTouchTap={this.handleTouchTapDay}
selected={selected}
Expand Down
3 changes: 1 addition & 2 deletions src/List/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,10 @@ class ListItem extends Component {
} = this.props;

const mergedDivStyles = Object.assign(
{},
{cursor: 'not-allowed'},
styles.root,
styles.innerDiv,
innerDivStyle,
{cursor: 'not-allowed'},
style,
);

Expand Down
5 changes: 4 additions & 1 deletion src/Table/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ class TableBody extends Component {
<TableRowColumn
key={key}
columnNumber={0}
style={Object.assign({width: 24}, isDisabled && {cursor: 'not-allowed'})}
style={{
width: 24,
cursor: isDisabled ? 'not-allowed' : 'inherit',
}}
>
{checkbox}
</TableRowColumn>
Expand Down
5 changes: 4 additions & 1 deletion src/Table/TableHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ class TableHeader extends Component {
return (
<TableHeaderColumn
key={key}
style={Object.assign({width: 24}, isDisabled && {cursor: 'not-allowed'})}
style={{
width: 24,
cursor: isDisabled ? 'not-allowed' : 'inherit',
}}
>
{checkbox}
</TableHeaderColumn>
Expand Down

0 comments on commit 15e4a22

Please sign in to comment.