Skip to content

Commit 29eb8b1

Browse files
jacobmllr95tmorehouse
authored andcommitted
feat(b-dropdown): remove deprecated slot text (#3868)
1 parent 21fab35 commit 29eb8b1

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/components/dropdown/dropdown.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,7 @@ export const BDropdown = /*#__PURE__*/ Vue.extend({
112112
},
113113
render(h) {
114114
let split = h()
115-
const buttonContent =
116-
this.normalizeSlot('button-content') ||
117-
this.normalizeSlot('text') ||
118-
this.html ||
119-
stripTags(this.text)
115+
const buttonContent = this.normalizeSlot('button-content') || this.html || stripTags(this.text)
120116
if (this.split) {
121117
const btnProps = {
122118
disabled: this.disabled,

src/components/dropdown/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252
{
5353
"name": "button-content",
5454
"description": "Can be used to implement custom text with icons and more styling."
55-
},
56-
{
57-
"name": "text",
58-
"description": "Deprecated. please use 'button-content' slot instead."
5955
}
6056
]
6157
},

0 commit comments

Comments
 (0)