-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 type error for tags #3887
Comments
@kakulukia can you please share a code pen. Thanks |
Hi @wesdevpro , i had a second try to create a codepen, but have a look: its not executing as it should. Could you please provide a working empty template? |
Sure! It depends on what framework you are using. @kakulukia are you just using |
yes, buefy and vue2 |
@kakulukia You are right. buefy/src/components/tag/Tag.vue Line 5 in 181e987
buefy/src/components/tag/Tag.vue Line 41 in 181e987
It may be any object that |
- Fixes the issue that `Tag` did not accept objects as its `type` while objects actually work. Adds `Object` to acceptable types of `type`. issue buefy#3887
- Fixes the issue that `Tag` did not accept objects as its `type` while objects actually work. Adds `Object` to acceptable types of `type`. issue #3887
- Fixes the issue that `Tag` did not accept objects as its `type` while objects actually work. Adds `Object` to acceptable types of `type`. issue buefy#3887
- Fixes the issue that `Tag` did not accept objects as its `type` while objects actually work. Adds `Object` to acceptable types of `type`. issue buefy#3887
- Fixes the issue that `Tag` did not accept objects as its `type` while objects actually work. Adds `Object` to acceptable types of `type`. issue buefy#3887
Overview of the problem
Buefy version: 0.9.23
Vuejs version: 2.6.14
OS/Browser: OSX / Chrome
Description
I wanted to try different tag types based on conditions. In this case i have a time table with bookable slots, reserved one and one selected item.
I used the following code to get this result:
b-tag(:type="{ 'is-primary': !isBooked(day, slot), 'is-light': !isSelected(slot, day) }") [[ slot.start]] - [[ slot.end ]]
But, even tho we see it working it is producing the following error:
Steps to reproduce
Expected behavior
As objects already work, the above error should not be triggered.
Actual behavior
I see errors popping up AND Buefy accepting the object and rendering the type correctly.
I tried to set this CodePen template up, but it wasnt displaying Buefy CSS for me.
Anyway, this works for me as some test code:
<b-field><b-tag :type="{'is-primary': true}">test</b-tag><b-field>
And interestingly it is producing two error for this one tag item.
The text was updated successfully, but these errors were encountered: