🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/form-spinbutton/form-spinbutton.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
return defaultNumber(this.min, DEFAULT_MIN)
},
computedMax() {
return defaultNumber(this.max, DEFAULT_MAX)
// We round down to the nearest maximum step value
const max = defaultNumber(this.max, DEFAULT_MAX)
const step = this.computedStep
const min = this.computedMin
return Math.floor((max - min) / step) * step + min
},
computedDelay() {
return defaultInteger(this.repeatDelay, DEFAULT_REPEAT_DELAY) || DEFAULT_REPEAT_DELAY
Expand Down