mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: can not type 0.05 in TextControl (#10778)
This commit is contained in:
@@ -49,7 +49,7 @@ export default class TextControl extends React.Component<TextControlProps> {
|
|||||||
if (error) {
|
if (error) {
|
||||||
errors.push(error);
|
errors.push(error);
|
||||||
} else {
|
} else {
|
||||||
value = value.match(/.*(\.)$/g) ? value : parseFloat(value);
|
value = value.match(/.*(\.|0)$/g) ? value : parseFloat(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (value !== '' && this.props.isInt) {
|
if (value !== '' && this.props.isInt) {
|
||||||
|
|||||||
Reference in New Issue
Block a user