@eturnity/eturnity_reusable_components 7.12.7-EPDM-10299.0 → 7.12.7-EPDM-10047.0

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": "7.12.7-EPDM-10299.0",
3
+ "version": "7.12.7-EPDM-10047.0",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -549,18 +549,21 @@ export default {
549
549
  return array
550
550
  },
551
551
  onInput(value) {
552
+ // if(!this.isFocused){
553
+ // return
554
+ // }
552
555
  if (this.isBlurred) {
553
556
  this.isBlurred = false
554
557
  return
555
558
  }
556
- if (value === '') {
559
+ if (value === '' && this.isFocused) {
557
560
  this.$emit('on-input', '')
558
561
  }
559
562
  let evaluatedVal
560
563
  try {
561
564
  evaluatedVal = this.onEvaluateCode(value)
562
565
  } finally {
563
- if (evaluatedVal && this.value != evaluatedVal) {
566
+ if (evaluatedVal && this.isFocused) {
564
567
  this.$emit('on-input', evaluatedVal)
565
568
  }
566
569
  }
@@ -646,10 +649,10 @@ export default {
646
649
  }
647
650
  },
648
651
  initInteraction(e) {
649
- this.focusInput()
650
- e.preventDefault()
651
652
  window.addEventListener('mousemove', this.interact, false)
652
653
  window.addEventListener('mouseup', this.stopInteract, false)
654
+ e.preventDefault()
655
+ this.focusInput()
653
656
  },
654
657
  interact(e) {
655
658
  e.preventDefault()