Skip to content

Commit

Permalink
Make the base input widget customizable. (rjsf-team#547)
Browse files Browse the repository at this point in the history
Make it possible to extends the BaseInput widget and override some of its
props (e.g., "className")

resolves rjsf-team#546
  • Loading branch information
Asaf Shakarzy authored and E Einowski committed May 23, 2017
1 parent 4d9c0f4 commit 03c0eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/widgets/BaseInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function BaseInput(props) {
};
return (
<input
{...inputProps}
className="form-control"
readOnly={readonly}
disabled={disabled}
autoFocus={autofocus}
value={value == null ? "" : value}
{...inputProps}
onChange={_onChange}
onBlur={onBlur && (event => onBlur(inputProps.id, event.target.value))}
/>
Expand Down

0 comments on commit 03c0eb8

Please sign in to comment.