vue-range-slider
vue-range-slider copied to clipboard
Invalid prop: custom validator check failed for prop "tooltip".
Getting the error above when tooltip is set to false
Dist & src contains different code.
/src/js/vue-range-slider.js
tooltip: { type: [String, Boolean], default: 'always', validator: function validator(val) { return ['hover', 'always',false].indexOf(val) > -1; } },
/dist/vue-range-slider.js
tooltip: { type: [String, Boolean], default: 'always', validator: function validator(val) { return ['hover', 'always'].indexOf(val) > -1; } },
false is missing in validating array
Try :tooltip="null"
Try :tooltip="null"
Actually, this "hack" stops the error to being printed AND works, even if it's expected to not work at all. Is there a PR about it?
@lonevetad this package is a mess, i saw someone say to pull in "vue-range-slider-fixed" to fix this tooltip error, n now im not sure whether to use this package on production haha