-
-
Notifications
You must be signed in to change notification settings - Fork 996
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
Uncaught error on backspace #937
Comments
I have the same error |
Thanks for reporting! Gonna work on this in a few days unless someone wants to pick this up :) |
Found the line multiselectMixin.js#L602. Option is undefined and should be checked first. The undefined option comes from here multiselectMixin.js#L635. |
@shentao hi! Can you say when planned release with this fix? |
hey, @NoahStahl, @juanpscotto, @phlegx, @Alex-Sokolov, and @shentao a long story short, I solved the issue for me by utilizing the multiselect(
v-model="value"
:options="options"
:block-keys="['Delete']"
) search for How I found this was I followed the errors to the This results in removeLastElement () {
/* istanbul ignore else */
if (this.blockKeys.indexOf('Delete') !== -1) return
/* istanbul ignore else */
if (this.search.length === 0 && Array.isArray(this.internalValue) {
this.removeElement(this.internalValue[this.internalValue.length - 1], false)
}
} It's seems reasonable to set /**
* Array of keyboard keys to block
* when selecting
* @default 1000
* @type {String}
*/
blockKeys: {
type: Array,
default () {
return ['Delete']
}
} anyways, I hope this helps :) |
@dgriego Thanks man!! I tried that trick you said and it works well!. Thanks for the help. |
Steps to reproduce
Expected behaviour
Backspace ignored if no value
Actual behaviour
Error in console.
The text was updated successfully, but these errors were encountered: