Skip to content

Commit 8c277a1

Browse files
authored
fix: change calssName sort (#577)
1 parent c85939a commit 8c277a1

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

src/InputNumber.tsx

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -545,18 +545,13 @@ const InternalInputNumber = React.forwardRef(
545545
// ============================ Render ============================
546546
return (
547547
<div
548-
className={clsx(
549-
prefixCls,
550-
className,
551-
{
552-
[`${prefixCls}-focused`]: focus,
553-
[`${prefixCls}-disabled`]: disabled,
554-
[`${prefixCls}-readonly`]: readOnly,
555-
[`${prefixCls}-not-a-number`]: decimalValue.isNaN(),
556-
[`${prefixCls}-out-of-range`]: !decimalValue.isInvalidate() && !isInRange(decimalValue),
557-
},
558-
classNames?.input,
559-
)}
548+
className={clsx(prefixCls, classNames?.input, className, {
549+
[`${prefixCls}-focused`]: focus,
550+
[`${prefixCls}-disabled`]: disabled,
551+
[`${prefixCls}-readonly`]: readOnly,
552+
[`${prefixCls}-not-a-number`]: decimalValue.isNaN(),
553+
[`${prefixCls}-out-of-range`]: !decimalValue.isInvalidate() && !isInRange(decimalValue),
554+
})}
560555
style={style}
561556
onFocus={() => {
562557
setFocus(true);

0 commit comments

Comments
 (0)