-
-
Notifications
You must be signed in to change notification settings - Fork 174
fix(BTable): always allow text selection when properties "selectable" and "no-select-on-click" are used together #2947
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
Conversation
… and "no-select-on-click" are used together
|
|
WalkthroughModified the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (2)**/*.{ts,tsx,js,jsx,vue}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
packages/bootstrap-vue-next/src/components/**/*.vue📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-05-28T07:32:45.658ZApplied to files:
📚 Learning: 2025-05-28T07:57:19.915ZApplied to files:
📚 Learning: 2025-05-28T07:01:55.095ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
|
I don't quite understand. What is allowing text selection? I'm getting seemingly the same results both ways. |
|
VividLemon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird

Hello,
there's a specific case where text selection with the mouse is impossible in a b-table.
I have b-tables where I simultaneously use the "selectable" and "no-select-on-click" properties because I manage row selection myself using the
unselectRow()andselectRow()methods.Using the properties "selectable" and "no-select-on-click" doesn't need to disable text selection when a table row is selected, so let's fix that (and let make my users happy again).
Btw, the condition
props.selectable && !props.noSelectOnClickis already used elsewhere in the bootstrap-vue-next code.Small replication
I created 2 demos (each with the same table inside) so you can compare the results with and without this fix by trying to select text in the b-table before and after clicking some of the "Select/Deselect" buttons:
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)feat(...)fix(...)docs(...)The PR fulfills these requirements:
CHANGELOGis generated from these messages, and determines the next version type. Pull requests that do not follow conventional commits or do not have an override will be deniedSummary by CodeRabbit
Bug Fixes
noSelectOnClickproperty during item selection. When enabled, the table now correctly manages text-selection behavior, delivering more predictable user interactions with selectable tables.✏️ Tip: You can customize this high-level summary in your review settings.