We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36463bd commit 7cfe142Copy full SHA for 7cfe142
src/components/form-spinbutton/form-spinbutton.js
@@ -172,10 +172,10 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
172
return interval > 0 ? interval : DEFAULT_REPEAT_INTERVAL
173
},
174
computedThreshold() {
175
- return toInteger(this.repeatThreshold, DEFAULT_REPEAT_THRESHOLD) || 1
+ return Math.max(toInteger(this.repeatThreshold, DEFAULT_REPEAT_THRESHOLD), 1)
176
177
computedStepMultiplier() {
178
- return toInteger(this.repeatStepMultiplier, DEFAULT_REPEAT_MULTIPLIER) || 1
+ return Math.max(toInteger(this.repeatStepMultiplier, DEFAULT_REPEAT_MULTIPLIER), 1)
179
180
computedPrecision() {
181
// Quick and dirty way to get the number of decimals
0 commit comments