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

Error when using arrows with simple input

Open Pimeko opened this issue 2 years ago • 0 comments

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

Pimeko avatar Jun 26 '22 00:06 Pimeko