Remove hidden select for perf

pull/12/head
cagataycivici 2019-05-22 16:24:43 +03:00
parent 09d2b816cc
commit af502f91a1
1 changed files with 4 additions and 9 deletions

View File

@ -1,10 +1,5 @@
<template>
<div ref="container" :class="containerClass" @click="onClick">
<div class="p-hidden-accessible">
<select aria-hidden="true" tabindex="-1">
<option v-for="option of visibleOptions" :key="getOptionLabel(option)" :value="getOptionValue(option)">{{getOptionLabel(option)}}</option>
</select>
</div>
<div class="p-hidden-accessible">
<input ref="focusInput" type="text" role="listbox" readonly :disabled="disabled" @focus="onFocus" @blur="onBlur" @keydown="onKeyDown" :tabindex="tabindex"/>
</div>
@ -44,6 +39,8 @@ export default {
value: null,
options: Array,
optionLabel: null,
optionValue: null,
optionDisabled: null,
scrollHeight: {
type: String,
default: '200px'
@ -55,9 +52,7 @@ export default {
disabled: Boolean,
dataKey: null,
showClear: Boolean,
tabindex: String,
optionValue: null,
optionDisabled: null
tabindex: String
},
data() {
return {