-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: properly handle HTML props render order (closes #5363) #5365
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
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/bootstrap-vue/bootstrap-vue/b3wtb3c15 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 09d5f75:
|
Codecov Report
@@ Coverage Diff @@
## dev #5365 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 277 277
Lines 8867 8867
Branches 2490 2490
=========================================
Hits 8867 8867
Continue to review full report at Codecov.
|
@tmorehouse I think we have to look at some other components with HTML props an apply the same logic. With that logic in place, we don't need the |
Not sure if we should change the order of what takes precedence... I think slots should take precedence over html/text props (if the slot is present), Otherwise it could be construed as a breaking change. So component docs mention if the slot takes precedence over the props (or vice versa). Also, when using DOM props (i.e. |
I got that wrong in the description. This PR ensures that order and avoids some hacks we did before (render additional |
I will make sure that we don't use |
Describe the PR
This PR fixes that the
head-html
andlead-html
props for<b-breadcrumb>
work properly.It also ensures the following rendering order for all components:
Closes #5363.
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)
, requires a patch version updatefeat(...)
, requires a minor version updatefeat(...)
, requires a minor version updatefix(...)
, requires a patch or minor version updatechore(docs)
, requires a patch version updateDoes this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
dev
branch, not themaster
branch[...] (fixes #xxx[,#xxx])
, where "xxx" is the issue number)fix(alert): not alerting during SSR render
,docs(badge): update pill examples
,chore(docs): fix typo in README
, etc). This is very important, as theCHANGELOG
is generated from these messages, and determines the next version type (patch or minor).If new features/enhancement/fixes are added or changed:
If adding a new feature, or changing the functionality of an existing feature, the PR's
description above includes: