Skip to content

Commit b13fe11

Browse files
committed
changed timepicker button keys to AM/PM
1 parent e3920ac commit b13fe11

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 key="1" position="left" onTouchTap={this._setAffix.bind(this, "am")} selected={isAM} >{"AM"}</ClockButton>,
84-
<ClockButton key="2" 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)