iliyaZelenko / vue-cool-select

Select with autocomplete, slots, bootstrap and material design themes.
https://iliyazelenko.github.io/vue-cool-select
MIT License
244 stars 33 forks source link

Error when using arrows with simple input #455

Open Pimeko opened 2 years ago

Pimeko commented 2 years ago

Hi!

First of all thank you so much for this awesome component, it's truly a delight to use, congrats!!

I noticed an uncaught error. When setting the prop simpleInput to true and using the up/down arrow, this error comes up:

image

I think simply adding it as a condition in eventsListener.js method onSelectByArrow(e) would sove it, like so:

onSelectByArrow (e) {
    e.preventDefault()

    if (this.disabled || this.readonly || this.simpleInput) return
...

Cheers