Skip to content

Commit 762d627

Browse files
authored
fix: add is-invalid class to input-group based on validation
1 parent a616a48 commit 762d627

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Input/Input.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ export const Input = ({
308308
className={classNames({
309309
'input-group': true,
310310
'input-number': true,
311+
'is-invalid': valid == false,
311312
disabled: rest.disabled,
312313
'input-number-adaptive': type === 'adaptive'
313314
})}

0 commit comments

Comments
 (0)