@eturnity/eturnity_reusable_components 1.2.78 → 1.2.80

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.78",
3
+ "version": "1.2.80",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -98,14 +98,17 @@ export default {
98
98
  methods: {
99
99
  onChangeHandler(event) {
100
100
  this.$emit('on-change', event)
101
+ },
102
+ focusInputElement(){
103
+ this.$nextTick(() => {
104
+ this.$refs.inputElement.$el.focus();
105
+ });
101
106
  }
102
107
  },
103
108
  watch: {
104
109
  hasFocus(newVal) {
105
110
  if (newVal) {
106
- this.$nextTick(() => {
107
- this.$refs.inputElement.$el.focus();
108
- });
111
+ this.focusInputElement()
109
112
  }
110
113
  }
111
114
  }
@@ -134,7 +134,7 @@
134
134
  :tabindex="0"
135
135
  @keyup.enter.native="onItemClick(item)"
136
136
  >
137
- <template v-for="(option, idx) in optionsDisplay" :key="idx">
137
+ <template v-for="(option, idx) in optionsDisplay">
138
138
  <span v-if="option !== 'template'" :key="idx">
139
139
  {{ !!item[option] ? item[option] : '-' }}
140
140
  </span>