Comments (7)
Hi Rafael,
The original source is up there in my first post. The tag in question is the <p>
tag that I put around the <b-checkbox-group>
tag. With the P tag in there, it fails, Without the P tag, it works.
from buefy.
Thanks for the very well explained issue, could you update to v0.3.1 and see if the behavior is still the same? I'm not sure but I think 38a0ac8 fixed this 👍
from buefy.
Thanks, Rafael, for the swift reply. I hoped to reply as swiftly, but then my bosses dropped a bunch of beer on the conference table and I got... distracted. :)
I've updated my package.json to include "buefy": "^0.3.1",
then ran npm update
then rebuilt from all my sources.
Results are the same as in my original post. :(
I really think I've missed something here, but I can't figure out what it is.
To edit a bit...
When I add a v-model value to the first checkbox and then checking it, I see that its props.value
becomes True when I check it, as opposed to staying False before I put a v-model value onto it. Nothing else in the checkbox group behavior changes though.
from buefy.
Found something more. In my original HTML, I wrapped each checkbox into a div
tag to make the list vertical, which is what I want and how the documentation page shows to do it.
When I pull the div
tags off of the b-checkbox
elements, it works as expected. New HTML:
<b-checkbox-group v-model="clients" @change="groupChange">
<b-checkbox custom-value="1" @change="checkChange">Item 1</b-checkbox>
<b-checkbox custom-value="2">Item 2</b-checkbox>
<b-checkbox custom-value="3">Item 3</b-checkbox>
<b-checkbox custom-value="4">Item 4</b-checkbox>
</b-checkbox-group>
Removing the div
tag around each b-checkbox
actually changed a considerable number of things about how everything was rendered and behaved. In the Chrome Vue utility, the b-checkbox elements are now children of the b-checkbox-group element. They were not before. In the view source in Chrome, the b-checkbox-group tag now contains all the b-checkbox tags. It did not before.
So it's functional, if we don't put the div
tag around the b-checkbox
components. Cool. Unfortunately that gives me a horizontal list and I need a vertical one.
At least I understand what's happening now and why. Once I'm less distracted, I'll see if I can figure out how to fix it.
from buefy.
After more testing, the wrapper <p class="control">
that I put around the b-checkbox-group
tag causes it to render improperly and that drives the improper behavior because the b-checkbox
elements are no longer children of the b-checkbox-group
.
Don't know why that happens and I don't know if you want to call it a bug or not, but I have what I need to make it work the way I want it to in my app at least.
Cheers!
from buefy.
Sorry for the delay, can you post the HTML before and after so I can try to find what's wrong?
from buefy.
I'm closing this cause I couldn't reproduce, glad that you make it work 👍
from buefy.
Related Issues (20)
- b-taginput allows duplicates when using `create-tag` props. HOT 1
- Since version 0.9.26 got error "Module not found" HOT 3
- Human-readable release notes? HOT 1
- Dropdown with "hover" trigger incorrectly rendered on mobile devices HOT 12
- Navigate people to Buefy-next (Buefy for Vue3)
- Show how to install `@ntohq/buefy-next` on buefy.org HOT 1
- Problem with table headers and dates moving from 0.9.25 to 0.9.27 HOT 12
- Tooltip overflow causing issues with app height HOT 1
- [Need investigation] Huge memory leak?
- Request support for styling syntax like tailwindCSS
- Additional event for blur in autocompletes HOT 6
- [Need investigation] Problem with searching numbers with decimals in Table HOT 2
- Release v0.9.28 HOT 8
- Issues Installing Buefy with Vue2 HOT 4
- The CodePen template recommended for reproducing problems doesn't work
- How do i set buefy-next with Nuxt3. Please any documentation available. The dicumention on buefy is for vue2
- Tooltip - `AbortController` is not defined in SSR mode (Nuxt) HOT 3
- Browser tab freezes, unresponsive, plus possible memory leak with form in modal HOT 16
- Validation error state won't be reset once it is set when `grouped` and `horizontal` are combined
- proxyMiddleware error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buefy.