A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/28e724536be4762382328648f203bd46d8f52fdc below:

respect step value for initial decrement when… · bootstrap-vue/bootstrap-vue@28e7245 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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