mirror of
https://github.com/apache/superset.git
synced 2026-05-10 18:35:40 +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) {
|
||||
errors.push(error);
|
||||
} else {
|
||||
value = value.match(/.*(\.)$/g) ? value : parseFloat(value);
|
||||
value = value.match(/.*(\.|0)$/g) ? value : parseFloat(value);
|
||||
}
|
||||
}
|
||||
if (value !== '' && this.props.isInt) {
|
||||
|
||||
Reference in New Issue
Block a user