File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ const TooltipUnControlledComponent = React.forwardRef(
108
108
showTooltip ( ) ;
109
109
return ;
110
110
}
111
- if ( ! tooltipAsModalValue && ! tooltipRef . current ?. contains ( event . target as Node ) ) {
111
+ if ( ! tooltipRef . current ?. contains ( event . target as Node ) ) {
112
112
hideTooltip ( ) ;
113
113
}
114
114
} ;
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ export const useInput = (props: ParamsTypeInputHook): ReturnTypeInputHook => {
131
131
132
132
const truncateFloatValue = value => {
133
133
if ( value === '' ) {
134
- return ;
134
+ return value ;
135
135
}
136
136
const hasMark = value . match ( / [ ^ a - z A - Z 0 - 9 ] / g) ;
137
137
@@ -158,7 +158,7 @@ export const useInput = (props: ParamsTypeInputHook): ReturnTypeInputHook => {
158
158
props . maxDecimals ,
159
159
props . locale || props . formatNumber ?. locale
160
160
)
161
- : limitedValue ;
161
+ : String ( limitedValue ) ;
162
162
163
163
const valueTruncated = truncateFloatValue ( truncateValue ) ;
164
164
@@ -172,7 +172,7 @@ export const useInput = (props: ParamsTypeInputHook): ReturnTypeInputHook => {
172
172
// remove existing thousand separator
173
173
const newValue = removeThousandSeparator ( value , props . locale || format . locale ) ;
174
174
// format value
175
- const formattedValue = formatNumber ( Number ( newValue ) , format ) ;
175
+ const formattedValue = formatNumber ( Number ( newValue ) , format , props . locale || format . locale ) ;
176
176
return formattedValue ;
177
177
}
178
178
return value ;
You can’t perform that action at this time.
0 commit comments