+5
-1
lines changedFilter options
+5
-1
lines changed Original file line number Diff line number Diff line change
@@ -168,7 +168,11 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
168
168
return defaultNumber(this.min, DEFAULT_MIN)
169
169
},
170
170
computedMax() {
171
-
return defaultNumber(this.max, DEFAULT_MAX)
171
+
// We round down to the nearest maximum step value
172
+
const max = defaultNumber(this.max, DEFAULT_MAX)
173
+
const step = this.computedStep
174
+
const min = this.computedMin
175
+
return Math.floor((max - min) / step) * step + min
172
176
},
173
177
computedDelay() {
174
178
return defaultInteger(this.repeatDelay, DEFAULT_REPEAT_DELAY) || DEFAULT_REPEAT_DELAY
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4