From 7f30c6e188a267521bc6dcbbf83ad1218a25f04c Mon Sep 17 00:00:00 2001 From: Marios Tsigkas Date: Tue, 5 Mar 2019 14:56:05 +0200 Subject: [PATCH 1/2] Focus on selectedItemByArrows Add itemsLimit prop Fix lint error "You should not mix 'v-for' with 'v-if'" --- src/component.vue | 5 +++-- src/eventsListeners.js | 3 +++ src/props.js | 5 +++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/component.vue b/src/component.vue index 9d34e4a5..b618b0a7 100644 --- a/src/component.vue +++ b/src/component.vue @@ -75,7 +75,9 @@ 'IZ-select__item': true, 'IZ-select__item--selected': isItemSelected(item) }" + tabindex="-1" @click="onClickSelectItem(item)" + :ref="'items'" > Date: Tue, 5 Mar 2019 15:01:37 +0200 Subject: [PATCH 2/2] Fix lint error "You should not mix 'v-for' with 'v-if'" --- src/component.vue | 5 ++--- src/props.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/component.vue b/src/component.vue index b618b0a7..7b50c583 100644 --- a/src/component.vue +++ b/src/component.vue @@ -69,7 +69,6 @@
{{ getItemText(item) }} @@ -150,7 +150,6 @@ export default { focused: false, selectedItem: null, selectedItemByArrows: null, - // used only in the "search" computed (setter + getter) searchData: '' }), computed, diff --git a/src/props.js b/src/props.js index f8703f94..49dbd3a4 100644 --- a/src/props.js +++ b/src/props.js @@ -13,7 +13,7 @@ export default { itemsLimit: { type: Number, default: 20, - note: 'property in item for text' + note: 'items limit' }, itemText: { type: String,