Fixed: Allow decimals for Custom Format size

(cherry picked from commit 7f5ddff568ce9f87bd45420cbd36690b190bd633)

Closes #4039
This commit is contained in:
Mark McDowall 2023-08-19 00:14:54 -07:00 committed by Bogdan
parent 65cdbeb41e
commit 319ea66705
4 changed files with 9 additions and 1 deletions

View file

@ -41,7 +41,7 @@ class NumberInput extends Component {
componentDidUpdate(prevProps, prevState) {
const { value } = this.props;
if (value !== prevProps.value && !this.state.isFocused) {
if (!isNaN(value) && value !== prevProps.value && !this.state.isFocused) {
this.setState({
value: value == null ? '' : value.toString()
});