Subscribe on changes!

Input range starts with a maximum value of 100 even with static attributes

avatar
Jun 30th 2021

Version

3.1.2

Reproduction link

https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHRlbXBsYXRlPlxuICA8aW5wdXQgdHlwZT1cInJhbmdlXCIgdmFsdWU9XCI1MDBcIiBtaW49XCIwXCIgbWF4PVwiMTAwMFwiIC8+XG48L3RlbXBsYXRlPiJ9

Steps to reproduce

Just use this code

<template>
  <input type="range" value="500" min="0" max="1000" />
</template>

What is expected?

For the input to start with a value of 500

What is actually happening?

The input has a value of 100

avatar
Jun 30th 2021

There was https://github.com/vuejs/vue-next/issues/2325 but it was only referring to v-model. There is still an open PR: https://github.com/vuejs/vue-next/pull/2353

Here is a workaround

avatar
Jun 30th 2021

Thanks a lot !