Skip to content
Permalink
Browse files

feat(b-dropdown): remove deprecated slot `text` (#3868)

  • Loading branch information...
jackmu95 authored and tmorehouse committed Aug 13, 2019
1 parent 21fab35 commit 29eb8b1879462ce2dee8192c2ef203fb348baeac
Showing with 1 addition and 9 deletions.
  1. +1 −5 src/components/dropdown/dropdown.js
  2. +0 −4 src/components/dropdown/package.json
@@ -112,11 +112,7 @@ export const BDropdown = /*#__PURE__*/ Vue.extend({
},
render(h) {
let split = h()
const buttonContent =
this.normalizeSlot('button-content') ||
this.normalizeSlot('text') ||
this.html ||
stripTags(this.text)
const buttonContent = this.normalizeSlot('button-content') || this.html || stripTags(this.text)
if (this.split) {
const btnProps = {
disabled: this.disabled,
@@ -52,10 +52,6 @@
{
"name": "button-content",
"description": "Can be used to implement custom text with icons and more styling."
},
{
"name": "text",
"description": "Deprecated. please use 'button-content' slot instead."
}
]
},

0 comments on commit 29eb8b1

Please sign in to comment.
You can’t perform that action at this time.