dst-rg 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -96,6 +96,8 @@ export const Input = ({
|
|
|
96
96
|
} as React.ChangeEvent<HTMLInputElement>);
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
+
const resolvedOnChange = isPrice ? handlePriceChange : onChange;
|
|
100
|
+
|
|
99
101
|
return (
|
|
100
102
|
<div className="flex flex-col gap-1 items-start">
|
|
101
103
|
<InputLabel
|
|
@@ -135,7 +137,9 @@ export const Input = ({
|
|
|
135
137
|
<input
|
|
136
138
|
value={isPrice ? formatPrice(String(value ?? "")) : value}
|
|
137
139
|
name={name}
|
|
138
|
-
onChange={
|
|
140
|
+
onChange={(e) => {
|
|
141
|
+
resolvedOnChange?.(e);
|
|
142
|
+
}}
|
|
139
143
|
placeholder={placeholder}
|
|
140
144
|
autoFocus={autoFocus}
|
|
141
145
|
className={cn(
|