-
Notifications
You must be signed in to change notification settings - Fork 169
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
Taginput: cannot remove custom items, no removeItem() function #887
Comments
It seemed to me it was just missing from |
Note: this looks to be a regression from release 0.8.0. Are there any other bindings that need to be exposed?
|
@Thaurin first of all, thanks for finding this bug! You are right, with the switch to the Composition API, all component data, functions etc... are now closed by default. The example seems to have been missed during refectoring. For me a better solution would be to add the Would that solve your problem too? |
While I personally love the flexibility of being able to use all sorts of a component's internal functionalities, because I love to customize, I understand your choice to limit this as much as possible. I'm glad that For my current situation, if your solution works as well, I'd be happy. Would that simply work something like this?
I've tried manipulating the v-model on |
…ga-ui#887)" This reverts commit e111cdd.
I added |
I updated the documenation for completeness sake. This solution works for me. I didn't find any other If you want to do anything differently, go ahead, of course. |
Overview of the problem
Oruga version: [0.8.7]
Vuejs version: [3.4.21]
OS/Browser: Windows 10/Chrome
Description
When using a custom template for taginput items, the
removeItem()
seems to be not available anymore on the taginputref
, resulting in a TypeError.Steps to reproduce
It is reproducible on the Oruga documentation page for Taginput: scroll to the "Custom selected" example, add a few items, and click on an item. Pay attention to the Javascript console:
Expected behavior
The item should get deleted from the taginput's item list. The items can still be removed by using the keyboard shortcut Backspace.
Actual behavior
Nothing happens when an item is clicked in the example, besides the Javascript error.
The text was updated successfully, but these errors were encountered: