Skip to content

Commit 96b2c8c

Browse files
author
Asaf Shakarzy
committed
Make the base input widget customizable.
Make it possible to extends the BaseInput widget and override some of its props (e.g., "className") resolves rjsf-team#546
1 parent 84b0a53 commit 96b2c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/widgets/BaseInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function BaseInput(props) {
2020
};
2121
return (
2222
<input
23-
{...inputProps}
2423
className="form-control"
2524
readOnly={readonly}
2625
disabled={disabled}
2726
autoFocus={autofocus}
2827
value={value == null ? "" : value}
28+
{...inputProps}
2929
onChange={_onChange}
3030
onBlur={onBlur && (event => onBlur(inputProps.id, event.target.value))}
3131
/>

0 commit comments

Comments
 (0)