Skip to content

Commit f3b83d3

Browse files
authored
Merge pull request #567 from facultyai/button-docstring
Update docstring for Button
2 parents 047a94b + 317779b commit f3b83d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Button.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,10 @@ Button.propTypes = {
189189
target: PropTypes.string,
190190

191191
/**
192-
* The default behavior of the button. Possible values are: button, reset,
193-
* submit
192+
* The default behavior of the button. Possible values are: "button", "reset",
193+
* "submit". If left unspecified the default depends on usage: for buttons
194+
* associated with a form (e.g. a dbc.Button inside a dbc.Form) the default is
195+
* "submit". Otherwise the default is "button".
194196
*/
195197
type: PropTypes.oneOf(['button', 'reset', 'submit']),
196198

0 commit comments

Comments
 (0)