@@ -66,7 +66,7 @@ export const BTooltip = /*#__PURE__*/ Vue.extend({
6666 default : ( ) => getComponentConfig ( NAME , 'boundary' )
6767 } ,
6868 boundaryPadding : {
69- type : Number ,
69+ type : [ Number , String ] ,
7070 default : ( ) => getComponentConfig ( NAME , 'boundaryPadding' )
7171 } ,
7272 offset : {
@@ -122,6 +122,7 @@ export const BTooltip = /*#__PURE__*/ Vue.extend({
122122 customClass : this . customClass ,
123123 container : this . container ,
124124 boundary : this . boundary ,
125+ boundaryPadding : this . boundaryPadding ,
125126 delay : this . delay ,
126127 offset : this . offset ,
127128 noFade : this . noFade ,
@@ -244,19 +245,21 @@ export const BTooltip = /*#__PURE__*/ Vue.extend({
244245 // Overridden by BPopover
245246 // Tooltip: Default slot is `title`
246247 // Popover: Default slot is `content`, `title` slot is title
247- // We pass a scoped slot function by default (v2.6x)
248+ // We pass a scoped slot function reference by default (Vue v2.6x)
248249 // And pass the title prop as a fallback
249250 this . setTitle ( this . $scopedSlots . default || this . title )
250251 } ,
251252 // Helper methods for `updateContent()`
252253 setTitle ( val ) {
253254 val = isUndefinedOrNull ( val ) ? '' : val
255+ // We only update the value if it has changed
254256 if ( this . localTitle !== val ) {
255257 this . localTitle = val
256258 }
257259 } ,
258260 setContent ( val ) {
259261 val = isUndefinedOrNull ( val ) ? '' : val
262+ // We only update the value if it has changed
260263 if ( this . localContent !== val ) {
261264 this . localContent = val
262265 }
0 commit comments