You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Don't minify/remove the console functions in the distribution code (this can be handled by peoples app build anyway). Or throw an error instead.
Additional context
So I found this issue as I have options set to an array of objects and am rendering the label using the slot instead of the prop. Issue is when trying to select a different option, it uses isOptionSelected/optionComparator to compare the objects, but getOptionLabel was returning undefined. I don't really consider this to be the bug as I was missing config, but having the console.warn would have really helped me to debug this. This is definitely a weird edge case / gotcha that should be considered though.
The text was updated successfully, but these errors were encountered:
Describe the bug
Useful console messages are not being transpiled into the dist, e.g.:
https://github.com/sagalbot/vue-select/blob/master/src/components/Select.vue#L245
To Reproduce
Steps to reproduce the behavior:
yarn
yarn build
dist/vue-select.js
forconsole
Expected behavior
Don't minify/remove the
console
functions in the distribution code (this can be handled by peoples app build anyway). Or throw an error instead.Additional context
So I found this issue as I have options set to an array of objects and am rendering the label using the slot instead of the prop. Issue is when trying to select a different option, it uses
isOptionSelected/optionComparator
to compare the objects, butgetOptionLabel
was returning undefined. I don't really consider this to be the bug as I was missing config, but having the console.warn would have really helped me to debug this. This is definitely a weird edge case / gotcha that should be considered though.The text was updated successfully, but these errors were encountered: