@eturnity/eturnity_reusable_components 7.20.0-qa-25.0 → 7.20.0-qa-25.1

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.20.0-qa-25.0",
3
+ "version": "7.20.0-qa-25.1",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -313,8 +313,7 @@ export default {
313
313
  return {
314
314
  textInput: '',
315
315
  isFocused: false,
316
- warningIcon: warningIcon,
317
- isBlurred: false
316
+ warningIcon: warningIcon
318
317
  }
319
318
  },
320
319
  props: {
@@ -549,26 +548,23 @@ export default {
549
548
  return array
550
549
  },
551
550
  onInput(event) {
552
- if (this.isBlurred) {
553
- this.isBlurred = false
551
+ if (!this.isFocused) {
554
552
  return
555
553
  }
556
- if (event.target.value === '' && this.isFocused) {
554
+ if (event.target.value === '') {
557
555
  this.$emit('on-input', '')
558
556
  }
559
557
  let evaluatedVal
560
558
  try {
561
559
  evaluatedVal = this.onEvaluateCode(event)
562
560
  } finally {
563
- if (evaluatedVal && this.value != evaluatedVal && this.isFocused) {
561
+ if (evaluatedVal && this.value != evaluatedVal) {
564
562
  this.$emit('on-input', evaluatedVal)
565
563
  }
566
564
  }
567
565
  },
568
566
  onInputBlur(e) {
569
567
  this.isFocused = false
570
- // setting isBlurred so we don't trigger onInput as well
571
- this.isBlurred = true
572
568
  let value = e.target.value
573
569
  let evaluatedInput = this.onEvaluateCode(e)
574
570
  this.onChangeHandler(evaluatedInput ? evaluatedInput : value)