We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05be382 + dec8751 commit 16b99a1Copy full SHA for 16b99a1
src/datepicker.jsx
@@ -115,6 +115,11 @@ var DatePicker = React.createClass( {
115
} );
116
},
117
118
+ onClearClick: function( event ) {
119
+ event.preventDefault();
120
+ this.clearSelected();
121
+ },
122
+
123
calendar: function() {
124
if ( this.state.focus ) {
125
return (
@@ -145,7 +150,7 @@ var DatePicker = React.createClass( {
145
150
var clearButton = null;
146
151
if ( this.props.isClearable && this.state.selected != null ) {
147
152
clearButton = (
148
- <a className="close-icon" href="#" onClick={this.clearSelected}></a>
153
+ <a className="close-icon" href="#" onClick={this.onClearClick}></a>
149
154
);
155
}
156
0 commit comments