vue-search-select icon indicating copy to clipboard operation
vue-search-select copied to clipboard

error on enterItem

Open shinnlu opened this issue 1 year ago • 1 comments

i found a error when i press enter in the select.

i have many input field in my form, i want to press enter to focus to next field, when i press enter to focus to model-list-select field, the error message:

index-85856991.js:1 TypeError: Cannot read properties of undefined (reading 'disabled')
    at Object.enterItem (index-85856991.js:5:23529)
    at Proxy.enterItem (index-85856991.js:5:25740)
    at index-85856991.js:5:27046
    at index-85856991.js:1:53152
    at index-85856991.js:1:53373
    at index-85856991.js:1:51251
    at _t (index-85856991.js:1:12673)
    at Fe (index-85856991.js:1:12751)
    at Fe (index-85856991.js:1:12851)
    at HTMLInputElement.n (index-85856991.js:1:51036)

the error occur on official demo site

reprocedure the problem

open official demo site focus on any one of select element, press enter.

shinnlu avatar Nov 06 '23 02:11 shinnlu

just to avoid getting an error

<model-select
  ref="select"
  :options="accountManagersOptions"
  v-model="apiCallData.ACCOUNT_MANAGER_FULL_NAME.value"
  placeholder=""

  @keyup.enter.capture.stop="console.log('111');"

/>

yatsenkoleg-spiralsoft avatar Jan 24 '24 21:01 yatsenkoleg-spiralsoft