bootstrap-input-spinner 3.3.1 → 3.3.3

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/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- src/InputSpinner.js linguist-vendored=false
1
+ src/bootstrap-input-spinner.js linguist-vendored=false
2
2
  index.html linguist-documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bootstrap-input-spinner",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "A Bootstrap 5 / jQuery plugin to create input spinner elements for number input.",
5
5
  "browser": "./src/bootstrap-input-spinner.js",
6
6
  "scripts": {
@@ -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
- newValue = self.$original[0].inputSpinnerEditor.parse(newValue)
164
- setValue(newValue, focusOut)
165
- dispatchEvent(self.$original, event.type)
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
  }