Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
makss87 opened this issue Nov 30, 2020 · 3 comments
Open

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

makss87 opened this issue Nov 30, 2020 · 3 comments

Comments

@makss87
Copy link

makss87 commented Nov 30, 2020

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

@ghost
Copy link

ghost commented Dec 10, 2020

Try :tooltip="null"

@lonevetad
Copy link

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?

@vortechron
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants