panel: tab rendering issue when initialized with a non-numeric value

This commit is contained in:
jean-emmanuel 2023-07-16 17:47:15 +02:00
parent 19a4a62a3e
commit bce4c10acf
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- bug fixes
- input: rendering issues with big font sizes
- panel: tab rendering issue when initialized with a non-numeric value
## 1.25.2

View file

@ -220,7 +220,7 @@ class Panel extends Container() {
e.stopPropagation = true
})
this.setValue(this.getProp('value') || 0)
this.setValue(Number(this.getProp('value')) || 0)
} else if (this.getProp('widgets') && this.getProp('widgets').length) {