vue-range-slider icon indicating copy to clipboard operation
vue-range-slider copied to clipboard

Invalid prop: custom validator check failed for prop "tooltip".

Open makss87 opened this issue 4 years ago • 3 comments

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

makss87 avatar Nov 30 '20 05:11 makss87

Try :tooltip="null"

ghost avatar Dec 10 '20 07:12 ghost

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 avatar Jan 27 '21 16:01 lonevetad

@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

vortechron avatar May 03 '21 00:05 vortechron