From 7bff976452ec55cbe137aafc9d97c666263645d5 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Mon, 9 Sep 2019 13:48:36 -0300 Subject: [PATCH 1/6] fix(v-b-tooltip, v-b-popover): ad missing `disabled` config option --- src/directives/tooltip/tooltip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/tooltip/tooltip.js b/src/directives/tooltip/tooltip.js index 8f6f2f2c36f..e935ecb8974 100644 --- a/src/directives/tooltip/tooltip.js +++ b/src/directives/tooltip/tooltip.js @@ -49,6 +49,7 @@ const parseBindings = (bindings, vnode) => /* istanbul ignore next: not easy to offset: 0, id: null, html: false, + disabled: false, delay: getComponentConfig(NAME, 'delay'), boundary: String(getComponentConfig(NAME, 'boundary')), boundaryPadding: parseInt(getComponentConfig(NAME, 'boundaryPadding'), 10) || 0, From 80509a2286bf3560a249fcbe0801cf1b727c853c Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Mon, 9 Sep 2019 13:50:29 -0300 Subject: [PATCH 2/6] Update popover.js --- src/directives/popover/popover.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/popover/popover.js b/src/directives/popover/popover.js index 27350b84b58..19cbd5e95fd 100644 --- a/src/directives/popover/popover.js +++ b/src/directives/popover/popover.js @@ -47,6 +47,7 @@ const parseBindings = (bindings, vnode) => /* istanbul ignore next: not easy to container: false, // Default of body animation: true, offset: 0, + disabled: false, id: null, html: false, delay: getComponentConfig(NAME, 'delay'), From 802a57ac2f26dc7c706fdcf9ff5ff55fb5e69565 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Mon, 9 Sep 2019 13:55:10 -0300 Subject: [PATCH 3/6] Update README.md --- src/directives/popover/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/popover/README.md b/src/directives/popover/README.md index c2c3ec73497..38dd8f85f7c 100644 --- a/src/directives/popover/README.md +++ b/src/directives/popover/README.md @@ -484,6 +484,7 @@ Where `` can be (optional): | `variant` | String | `null` | Contextual color variant for the popover. | | `customClass` | String | `null` | A custom classname to apply to the popover outer wrapper element. | | `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. | +| `disabled` | Boolean | `false` | Set to `true` to disable the popover | ### Usage From 379df7265a44a9289db731dda7ffe58e8b2a6e90 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Mon, 9 Sep 2019 13:56:01 -0300 Subject: [PATCH 4/6] Update README.md --- src/directives/tooltip/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/tooltip/README.md b/src/directives/tooltip/README.md index 159c553c0e5..845a78e9c53 100644 --- a/src/directives/tooltip/README.md +++ b/src/directives/tooltip/README.md @@ -353,6 +353,7 @@ Where `` can be (optional): | `variant` | String | `null` | Contextual color variant for the tooltip. | | `customClass` | String | `null` | A custom classname to apply to the tooltip outer wrapper element. | | `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. | +| `disabled` | Boolean | `false` | Set to `true` to disable the tooltip | ### Usage From 61767848273f523efd8eda5f7cded891dc3ba726 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Mon, 9 Sep 2019 13:57:10 -0300 Subject: [PATCH 5/6] Update popover.js --- src/directives/popover/popover.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/popover/popover.js b/src/directives/popover/popover.js index 19cbd5e95fd..50344a7305d 100644 --- a/src/directives/popover/popover.js +++ b/src/directives/popover/popover.js @@ -210,6 +210,7 @@ const applyPopover = (el, bindings, vnode) => { offset: config.offset, noFade: !config.animation, id: config.id, + disabled: config.disabled, html: config.html } const oldData = el[BV_POPOVER].__bv_prev_data__ From a78e53f021bb133dfa167df2e34e078bafed4201 Mon Sep 17 00:00:00 2001 From: Troy Morehouse Date: Mon, 9 Sep 2019 13:57:49 -0300 Subject: [PATCH 6/6] Update tooltip.js --- src/directives/tooltip/tooltip.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/directives/tooltip/tooltip.js b/src/directives/tooltip/tooltip.js index e935ecb8974..e5cd9c348b4 100644 --- a/src/directives/tooltip/tooltip.js +++ b/src/directives/tooltip/tooltip.js @@ -204,6 +204,7 @@ const applyTooltip = (el, bindings, vnode) => { offset: config.offset, noFade: !config.animation, id: config.id, + disabled: config.disabled, html: config.html } const oldData = el[BV_TOOLTIP].__bv_prev_data__