xwpongithub / vue-range-slider

A range slider component based on vue (Vue滑块组件).
MIT License
122 stars 66 forks source link

How can't i set value with input? #2

Open lathanh1108 opened 5 years ago

lathanh1108 commented 5 years ago

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

isiegel commented 5 years ago

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

robinbastien commented 5 years ago

Any update on this?

robinbastien commented 5 years ago

@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();
ReinaldoM2 commented 4 years ago

@robinbastien Hey bro, your answer resolve the problem?

ivansteff commented 4 years ago

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

ivansteff commented 4 years ago

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

I using another lib