bootstrap-input-spinner 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -160,9 +160,11 @@ export class InputSpinner {
|
|
|
160
160
|
this.$input.on("paste input change focusout", function (event) {
|
|
161
161
|
let newValue = self.$input[0].value
|
|
162
162
|
const focusOut = event.type === "focusout"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
if(!self.props.buttonsOnly) {
|
|
164
|
+
newValue = self.$original[0].inputSpinnerEditor.parse(newValue)
|
|
165
|
+
setValue(newValue, focusOut)
|
|
166
|
+
dispatchEvent(self.$original, event.type)
|
|
167
|
+
}
|
|
166
168
|
if (self.props.keyboardStepping && focusOut) { // stop stepping
|
|
167
169
|
resetTimer()
|
|
168
170
|
}
|
|
@@ -358,7 +360,7 @@ export class InputSpinner {
|
|
|
358
360
|
e.preventDefault()
|
|
359
361
|
}
|
|
360
362
|
callback(e)
|
|
361
|
-
}, {passive:
|
|
363
|
+
}, {passive: false})
|
|
362
364
|
element.addEventListener("keydown", function (e) {
|
|
363
365
|
if ((e.keyCode === 32 || e.keyCode === 13) && !triggerKeyPressed) {
|
|
364
366
|
triggerKeyPressed = true
|
|
@@ -368,7 +370,5 @@ export class InputSpinner {
|
|
|
368
370
|
}
|
|
369
371
|
}
|
|
370
372
|
|
|
371
|
-
|
|
372
|
-
|
|
373
373
|
}
|
|
374
374
|
|