Skip to content

Commit

Permalink
Make the base input widget customizable.
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 committed Apr 15, 2017
1 parent 84b0a53 commit 96b2c8c
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 96b2c8c

Please sign in to comment.