We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Buefy version: [0.8.11] Vuejs version: [2.6.11] OS/Browser: any
I am looping over an array, creating inputs with v-for, where the input has these attributes set:
icon-right="times" icon-right-clickable @icon-right-click="removeBreak(item, index)"
the removeBreak removes the item from from the array, which removes the input.
Then, after the array is spliced, the event handler tries to focus the input.
This is normally correct behavior, but assumes that the input still exists, when it might not.
Buefy should check that the input exists before calling .focus()
Buefy blindly calls .focus() on the input generating the event.
The text was updated successfully, but these errors were encountered:
The relevant line is https://github.com/buefy/buefy/blob/dev/src/components/input/Input.vue#L240
Currently I am getting around this by triggering the actual removal in a $nextTick()
Sorry, something went wrong.
Fixe #2272 check input ref before to focus (#2278)
17a3865
Successfully merging a pull request may close this issue.
Overview of the problem
Buefy version: [0.8.11]
Vuejs version: [2.6.11]
OS/Browser: any
Description
I am looping over an array, creating inputs with v-for, where the input has these attributes set:
icon-right="times"
icon-right-clickable
@icon-right-click="removeBreak(item, index)"
the removeBreak removes the item from from the array, which removes the input.
Then, after the array is spliced, the event handler tries to focus the input.
This is normally correct behavior, but assumes that the input still exists, when it might not.
Expected behavior
Buefy should check that the input exists before calling .focus()
Actual behavior
Buefy blindly calls .focus() on the input generating the event.
The text was updated successfully, but these errors were encountered: