@kizmann/nano-ui 0.7.20 → 0.7.21

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "0.7.20",
3
+ "version": "0.7.21",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -318,9 +318,11 @@ export default {
318
318
  this.onMousedown(event, this.index = index);
319
319
  };
320
320
 
321
+ let key = Arr.findIndex(this.steps, value);
322
+
321
323
  return (
322
324
  <div class="n-slider__handle" {...handleProps}>
323
- <span>{ Obj.get(this.labels, index, value) }</span>
325
+ <span>{ Obj.get(this.labels, key, value) }</span>
324
326
  </div>
325
327
  );
326
328
  },