@eturnity/eturnity_reusable_components 1.2.77 → 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.77",
3
+ "version": "1.2.80",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
@@ -2,6 +2,7 @@
2
2
  <container>
3
3
  <input-wrapper>
4
4
  <input-container
5
+ ref="inputElement"
5
6
  :placeholder="placeholder"
6
7
  :value="value"
7
8
  @input="onChangeHandler($event)"
@@ -97,14 +98,17 @@ export default {
97
98
  methods: {
98
99
  onChangeHandler(event) {
99
100
  this.$emit('on-change', event)
101
+ },
102
+ focusInputElement(){
103
+ this.$nextTick(() => {
104
+ this.$refs.inputElement.$el.focus();
105
+ });
100
106
  }
101
107
  },
102
108
  watch: {
103
109
  hasFocus(newVal) {
104
110
  if (newVal) {
105
- this.$nextTick(() => {
106
- this.$refs.inputElement.$el.focus();
107
- });
111
+ this.focusInputElement()
108
112
  }
109
113
  }
110
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>