+5
-4
lines changedFilter options
+5
-4
lines changed Original file line number Diff line number Diff line change
@@ -366,8 +366,6 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
366
366
return
367
367
}
368
368
this.resetTimers()
369
-
// Enable body mouseup event handler
370
-
this.setMouseup(true)
371
369
// Step the counter initially
372
370
stepper(1)
373
371
const threshold = this.computedThreshold
@@ -393,9 +391,10 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
393
391
const { type, button } = evt || {}
394
392
/* istanbul ignore if */
395
393
if (type === 'mouseup' && button) {
396
-
// we only care about left (main === 0) mouse button click
394
+
// Ignore non left button (main === 0) mouse button click
397
395
return
398
396
}
397
+
evt.preventDefault()
399
398
this.resetTimers()
400
399
this.setMouseup(false)
401
400
// Trigger the change event
@@ -437,8 +436,10 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
437
436
props: { scale: this.hasFocus ? 1.5 : 1.25 },
438
437
attrs: { 'aria-hidden': 'true' }
439
438
})
440
-
const handler = evt => /* istanbul ignore next: until tests written */ {
439
+
const handler = evt => {
441
440
if (!isDisabled && !isReadonly) {
441
+
evt.preventDefault()
442
+
this.setMouseup(true)
442
443
this.handleStepRepeat(evt, stepper)
443
444
}
444
445
}
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