Skip to content

Commit 68baf9b

Browse files
Merge pull request mui#2025 from CameronFletcher92/timepicker-fix
Added keys to timepicker buttons, fixed mui#1964
2 parents edaf30f + b13fe11 commit 68baf9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/time-picker/clock.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ const Clock = React.createClass({
8080

8181
if (this.props.format === 'ampm'){
8282
buttons = [
83-
<ClockButton position="left" onTouchTap={this._setAffix.bind(this, "am")} selected={isAM} >{"AM"}</ClockButton>,
84-
<ClockButton position="right" onTouchTap={this._setAffix.bind(this, "pm")} selected={!isAM} >{"PM"}</ClockButton>,
83+
<ClockButton key="AM" position="left" onTouchTap={this._setAffix.bind(this, "am")} selected={isAM} >{"AM"}</ClockButton>,
84+
<ClockButton key="PM" position="right" onTouchTap={this._setAffix.bind(this, "pm")} selected={!isAM} >{"PM"}</ClockButton>,
8585
];
8686
}
8787
return buttons;

0 commit comments

Comments
 (0)