Skip to content

Commit

Permalink
fix: issues with InputNumber and formik
Browse files Browse the repository at this point in the history
  • Loading branch information
MildTomato committed Jul 15, 2022
1 parent cb6b73a commit b0c7d90
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/InputNumber/InputNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ function InputNumber({

// const iconNavClasses = [InputNumberStyles['sbui-inputnumber-nav']]

if (size) {
// inputClasses.push(InputNumberStyles[`sbui-inputnumber--${size}`])
// iconNavClasses.push(InputNumberStyles[`sbui-inputnumber-nav--${size}`])
}
// if (size) {
// inputClasses.push(InputNumberStyles[`sbui-inputnumber--${size}`])
// iconNavClasses.push(InputNumberStyles[`sbui-inputnumber-nav--${size}`])
// }

if (error) inputClasses.push(__styles.variants.error)
if (!error) inputClasses.push(__styles.variants.standard)
Expand Down Expand Up @@ -153,12 +153,15 @@ function InputNumber({
>
<div className={__styles.container}>
<input
{...props}
id={id}
name={name}
onChange={onInputChange}
onBlur={handleBlurEvent}
type={'number'}
ref={inputRef}
value={value}
className={inputClasses.join(' ')}
{...props}
/>
{/* <div className={iconNavClasses.join(' ')}>
<IconChevronUp
Expand Down

0 comments on commit b0c7d90

Please sign in to comment.