Skip to content

Commit

Permalink
Make the base input widget customizable. (#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 #546
  • Loading branch information
asaf authored and glasserc committed Apr 21, 2017
1 parent 84b0a53 commit 8344da6
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 8344da6

Please sign in to comment.