Skip to content

Commit 7909938

Browse files
committed
Fix minor things based on code review
1 parent 5b7559b commit 7909938

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

components/button-stateful/index.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const propTypes = {
5959
onKeyDown: PropTypes.func,
6060
onKeyPress: PropTypes.func,
6161
onKeyUp: PropTypes.func,
62+
onMouseDown: PropTypes.func,
6263
onMouseEnter: PropTypes.func,
6364
onMouseLeave: PropTypes.func,
6465
/**
@@ -78,7 +79,7 @@ const propTypes = {
7879
*/
7980
stateThree: PropTypes.object,
8081
/**
81-
* Write <code>'-1'</code> if you don't want the user to tab to the button.
82+
* Write "-1" if you don't want the user to tab to the button.
8283
*/
8384
tabIndex: PropTypes.string,
8485
tooltip: PropTypes.node,
@@ -146,6 +147,7 @@ class ButtonStateful extends TooltipTrigger {
146147
onKeyDown,
147148
onKeyPress,
148149
onKeyUp,
150+
onMouseDown,
149151
onMouseEnter,
150152
onMouseLeave,
151153
stateOne,
@@ -170,6 +172,7 @@ class ButtonStateful extends TooltipTrigger {
170172
onKeyDown={onKeyDown}
171173
onKeyPress={onKeyPress}
172174
onKeyUp={onKeyUp}
175+
onMouseDown={onMouseDown}
173176
onMouseEnter={onMouseEnter}
174177
onMouseLeave={this.handleBlur.bind(this)}
175178
tabIndex={tabIndex}

components/button/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const propTypes = {
8585
onKeyDown: PropTypes.func,
8686
onKeyPress: PropTypes.func,
8787
onKeyUp: PropTypes.func,
88+
onMouseDown: PropTypes.func,
8889
onMouseEnter: PropTypes.func,
8990
onMouseLeave: PropTypes.func,
9091
/**
@@ -214,6 +215,7 @@ class Button extends TooltipTrigger {
214215
onKeyDown,
215216
onKeyPress,
216217
onKeyUp,
218+
onMouseDown,
217219
onMouseEnter,
218220
onMouseLeave,
219221
tabIndex
@@ -232,6 +234,7 @@ class Button extends TooltipTrigger {
232234
onKeyDown={onKeyDown}
233235
onKeyPress={onKeyPress}
234236
onKeyUp={onKeyUp}
237+
onMouseDown={onMouseDown}
235238
onMouseEnter={onMouseEnter}
236239
onMouseLeave={onMouseLeave}
237240
tabIndex={tabIndex}

components/date-picker/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ module.exports = React.createClass({
260260
onInput,
261261
pattern,
262262
placeholder,
263-
...props
263+
...props // eslint-disable-line no-unused-vars
264264
} = this.props;
265265

266266
let isInline;

components/global-navigation-bar/link.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ GlobalNavigationBarLink.propTypes = {
127127
onMouseEnter: PropTypes.func,
128128
onMouseLeave: PropTypes.func,
129129
/**
130-
* Write <code>"-1"</code> if you don't want the user to tab to the button.
130+
* Write "-1" if you don't want the user to tab to the button.
131131
*/
132132
tabIndex: PropTypes.string
133133
};

0 commit comments

Comments
 (0)