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.
1 parent c3cbcae commit be9c744Copy full SHA for be9c744
src/elements/Button/Button.d.ts
@@ -123,7 +123,7 @@ declare class Button extends React.Component<ButtonProps> {
123
static Group: typeof ButtonGroup
124
static Or: typeof ButtonOr
125
126
- focus: () => void
+ focus: (options?: FocusOptions) => void
127
}
128
129
export default Button
src/elements/Button/Button.js
@@ -51,7 +51,7 @@ class Button extends Component {
51
if (ElementType === 'div') return 0
52
53
54
- focus = () => _.invoke(this.ref.current, 'focus')
+ focus = (options) => _.invoke(this.ref.current, 'focus', options)
55
56
handleClick = (e) => {
57
const { disabled } = this.props
0 commit comments