vue-range-slider icon indicating copy to clipboard operation
vue-range-slider copied to clipboard

How can't i set value with input?

Open lathanh1108 opened this issue 6 years ago • 6 comments
trafficstars

i have problem when set value with input tag.

i wan't use slider range and input to change value at the same time. but when i set v-model="value[0]" in input tag, it can't change value. i can't set anything in input, value still change when use slider.

can you help me?

Thank you very much

lathanh1108 avatar Sep 04 '19 06:09 lathanh1108

I'm having a similar issue, thank you. When the slider is present on the page, any text inputs cannot be used.

isiegel avatar Sep 06 '19 17:09 isiegel

Any update on this?

robinbastien avatar Sep 18 '19 20:09 robinbastien

@isiegel @lathanh1108 I fixed it but seems I cannot open a PR to patch it.

In vue-range-slider.esm.js there is a handleKeydown method. It stops propagation before it returns false if useKeyboard is set to false.

It should instead look like:

handleKeydown: function handleKeydown(e) {

      if (!this.useKeyboard) {
        return false;
      }

      e.preventDefault();
      e.stopPropagation();

robinbastien avatar Sep 18 '19 20:09 robinbastien

@robinbastien Hey bro, your answer resolve the problem?

ReinaldoM2 avatar Mar 06 '20 02:03 ReinaldoM2

Same issue. @robinbastien not quite figured out how to solve this problem?

ivansteff avatar Sep 18 '20 07:09 ivansteff

Same issue. @robinbastien not quite figured out how to solve this problem?

I using another lib

ivansteff avatar Sep 21 '20 10:09 ivansteff