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> <template>
<div ref="container" :class="containerClass" @click="onClick"> <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"> <div class="p-hidden-accessible">
<input ref="focusInput" type="text" role="listbox" readonly :disabled="disabled" @focus="onFocus" @blur="onBlur" @keydown="onKeyDown" :tabindex="tabindex"/> <input ref="focusInput" type="text" role="listbox" readonly :disabled="disabled" @focus="onFocus" @blur="onBlur" @keydown="onKeyDown" :tabindex="tabindex"/>
</div> </div>
@ -43,7 +38,9 @@ export default {
props: { props: {
value: null, value: null,
options: Array, options: Array,
optionLabel: null, optionLabel: null,
optionValue: null,
optionDisabled: null,
scrollHeight: { scrollHeight: {
type: String, type: String,
default: '200px' default: '200px'
@ -55,9 +52,7 @@ export default {
disabled: Boolean, disabled: Boolean,
dataKey: null, dataKey: null,
showClear: Boolean, showClear: Boolean,
tabindex: String, tabindex: String
optionValue: null,
optionDisabled: null
}, },
data() { data() {
return { return {