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 46fae2b commit 36463bdCopy full SHA for 36463bd
src/components/form-spinbutton/form-spinbutton.js
@@ -164,10 +164,12 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
164
return Math.floor((max - min) / step) * step + min
165
},
166
computedDelay() {
167
- return toInteger(this.repeatDelay, DEFAULT_REPEAT_DELAY)
+ const delay = toInteger(this.repeatDelay, 0)
168
+ return delay > 0 ? delay : DEFAULT_REPEAT_DELAY
169
170
computedInterval() {
- return toInteger(this.repeatInterval, DEFAULT_REPEAT_INTERVAL)
171
+ const interval = toInteger(this.repeatInterval, 0)
172
+ return interval > 0 ? interval : DEFAULT_REPEAT_INTERVAL
173
174
computedThreshold() {
175
return toInteger(this.repeatThreshold, DEFAULT_REPEAT_THRESHOLD) || 1
0 commit comments