Skip to content

Commit f488dc1

Browse files
authored
fix(v-b-tooltip, v-b-popover): add missing disabled config option (#4057)
1 parent 5df3227 commit f488dc1

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

src/directives/popover/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ Where `<value>` can be (optional):
484484
| `variant` | String | `null` | Contextual color variant for the popover. |
485485
| `customClass` | String | `null` | A custom classname to apply to the popover outer wrapper element. |
486486
| `id` | String | `null` | An ID to use on the popover root element. If none is provided, one will automatically be generated. If you do provide an ID, it _must_ be guaranteed to be unique on the rendered page. |
487+
| `disabled` | Boolean | `false` | Set to `true` to disable the popover |
487488

488489
### Usage
489490

src/directives/popover/popover.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const parseBindings = (bindings, vnode) => /* istanbul ignore next: not easy to
4747
container: false, // Default of body
4848
animation: true,
4949
offset: 0,
50+
disabled: false,
5051
id: null,
5152
html: false,
5253
delay: getComponentConfig(NAME, 'delay'),
@@ -209,6 +210,7 @@ const applyPopover = (el, bindings, vnode) => {
209210
offset: config.offset,
210211
noFade: !config.animation,
211212
id: config.id,
213+
disabled: config.disabled,
212214
html: config.html
213215
}
214216
const oldData = el[BV_POPOVER].__bv_prev_data__

src/directives/tooltip/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ Where `<value>` can be (optional):
353353
| `variant` | String | `null` | Contextual color variant for the tooltip. |
354354
| `customClass` | String | `null` | A custom classname to apply to the tooltip outer wrapper element. |
355355
| `id` | String | `null` | An ID to use on the tooltip root element. If none is provided, one will automatically be generated. If you do provide an ID, it _must_ be guaranteed to be unique on the rendered page. |
356+
| `disabled` | Boolean | `false` | Set to `true` to disable the tooltip |
356357

357358
### Usage
358359

src/directives/tooltip/tooltip.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const parseBindings = (bindings, vnode) => /* istanbul ignore next: not easy to
4949
offset: 0,
5050
id: null,
5151
html: false,
52+
disabled: false,
5253
delay: getComponentConfig(NAME, 'delay'),
5354
boundary: String(getComponentConfig(NAME, 'boundary')),
5455
boundaryPadding: parseInt(getComponentConfig(NAME, 'boundaryPadding'), 10) || 0,
@@ -203,6 +204,7 @@ const applyTooltip = (el, bindings, vnode) => {
203204
offset: config.offset,
204205
noFade: !config.animation,
205206
id: config.id,
207+
disabled: config.disabled,
206208
html: config.html
207209
}
208210
const oldData = el[BV_TOOLTIP].__bv_prev_data__

0 commit comments

Comments
 (0)