Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/form/InputField/InputFieldView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import renderIcon from '../../utils/renderIcon';
export default function InputFieldView(props: IInputFieldViewProps) {
const bem = useBem('InputFieldView');

const {value, ...inputProps} = props.inputProps;

return (
<div
className={bem(
Expand Down Expand Up @@ -57,7 +59,7 @@ export default function InputFieldView(props: IInputFieldViewProps) {
size: props.size,
}),
)}
{...props.inputProps}
{...inputProps}
type={props.inputProps.type}
placeholder={props.placeholder}
disabled={props.disabled}
Expand All @@ -73,7 +75,7 @@ export default function InputFieldView(props: IInputFieldViewProps) {
size: props.size,
}),
)}
{...props.inputProps}
{...inputProps}
type={props.inputProps.type}
placeholder={props.placeholder}
disabled={props.disabled}
Expand Down
4 changes: 3 additions & 1 deletion src/form/NumberField/NumberFieldView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import Icon from '@steroidsjs/core/ui/content/Icon';
export default function NumberFieldView(props: INumberFieldViewProps) {
const bem = useBem('NumberFieldView');

const {value, ...inputProps} = props.inputProps;

return (
<div
className={bem(
Expand All @@ -25,7 +27,7 @@ export default function NumberFieldView(props: INumberFieldViewProps) {
className={bem(
bem.element('input'),
)}
{...props.inputProps}
{...inputProps}
onWheel={event => event.currentTarget.blur()}
id={props.id}
/>
Expand Down