diff --git a/superset-frontend/src/explore/components/controls/TextControl.jsx b/superset-frontend/src/explore/components/controls/TextControl.jsx index e840f181e4654..99212c3daf329 100644 --- a/superset-frontend/src/explore/components/controls/TextControl.jsx +++ b/superset-frontend/src/explore/components/controls/TextControl.jsx @@ -55,7 +55,7 @@ export default class TextControl extends React.Component { if (error) { errors.push(error); } else { - value = parseFloat(value); + value = value.match(/.*(\.)$/g) ? value : parseFloat(value); } } if (value !== '' && this.props.isInt) {