@eturnity/eturnity_reusable_components 1.2.31-3d-master.2 → 1.2.31-3d-master.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "1.2.31-3d-master.2",
3
+ "version": "1.2.31-3d-master.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -1,7 +1,6 @@
1
1
  <template>
2
2
  <container :inputWidth="inputWidth" :alignItems="alignItems">
3
3
  <label-slot-wrapper v-if="hasLabelSlot" :isInteractive="isInteractive" @mousedown="initInteraction">
4
-
5
4
  <slot name="label"></slot>
6
5
  </label-slot-wrapper>
7
6
 
@@ -488,6 +487,15 @@ export default {
488
487
  })
489
488
  this.$emit('input-focus')
490
489
  },
490
+ blurInput() {
491
+ if (this.disabled) {
492
+ return
493
+ }
494
+ this.isFocused = false
495
+ this.$nextTick(() => {
496
+ this.$refs.inputField1.$el.blur()
497
+ })
498
+ },
491
499
  formatWithCurrency(value) {
492
500
  let adjustedMinValue =
493
501
  value || value === 0
@@ -517,6 +525,7 @@ export default {
517
525
  }
518
526
  },
519
527
  initInteraction(e) {
528
+ this.focusInput()
520
529
  window.addEventListener('mousemove', this.interact, false);
521
530
  window.addEventListener('mouseup', this.stopInteract, false);
522
531
  e.preventDefault()
@@ -537,8 +546,9 @@ export default {
537
546
  },
538
547
  stopInteract(e) {
539
548
  e.preventDefault()
540
- window.removeEventListener('mousemove', this.interact, false);
541
- window.removeEventListener('mouseup', this.stopInteract, false);
549
+ window.removeEventListener('mousemove', this.interact, false);
550
+ window.removeEventListener('mouseup', this.stopInteract, false);
551
+ this.blurInput()
542
552
  },
543
553
  },
544
554
  created() {