CartoDB / airship

A design library for building Location Intelligence applications.
https://carto.com/developers/airship/
BSD 3-Clause "New" or "Revised" License
75 stars 14 forks source link

slider issues #555

Open ramiroaznar opened 5 years ago

ramiroaznar commented 5 years ago

What is happening?

There are a couple of issues related to the slider component:

  1. The default position is wrong. It is always very close to the beginning. For instance, setting the value to 0.25 in a range from 0 to 1 returns this behavior:

slider

  1. Setting the maxValue and minValue or range props within the HTML element does not work.
<as-range-slider class="js-slider" value="0.25" step="0.25" maxValue="1" minValue="0"></as-range-slider>

It returns the default min (0) and max (20) values.

What should happen?

  1. It should start at the 25% segment position, as seen in the last moment.
  2. It should return the min and max values set in the html element.

Device/Browser/Airship-Version

Google Chrome Versión 67.0.3396.87 (Build oficial) (64 bits)

cc @ivanmalagon @rjimenezda