A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/fab7fea below:

add `SVGElement` as acceptable prop type (c… · bootstrap-vue/bootstrap-vue@fab7fea · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+9

-5

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+9

-5

lines changed Original file line number Diff line number Diff line change

@@ -8,7 +8,7 @@

8 8

import Vue from '../../../utils/vue'

9 9

import Popper from 'popper.js'

10 10

import { getCS, select } from '../../../utils/dom'

11 -

import { HTMLElement } from '../../../utils/safe-types'

11 +

import { HTMLElement, SVGElement } from '../../../utils/safe-types'

12 12

import { BVTransition } from '../../../utils/bv-transition'

13 13 14 14

const NAME = 'BVPopper'

@@ -51,7 +51,7 @@ export const BVPopper = /*#__PURE__*/ Vue.extend({

51 51

props: {

52 52

target: {

53 53

// Element that the tooltip/popover is positioned relative to

54 -

type: HTMLElement,

54 +

type: [HTMLElement, SVGElement],

55 55

default: null

56 56

},

57 57

placement: {

Original file line number Diff line number Diff line change

@@ -3,7 +3,7 @@ import getScopId from '../../utils/get-scope-id'

3 3

import { isArray, arrayIncludes } from '../../utils/array'

4 4

import { getComponentConfig } from '../../utils/config'

5 5

import { isString, isUndefinedOrNull } from '../../utils/inspect'

6 -

import { HTMLElement } from '../../utils/safe-types'

6 +

import { HTMLElement, SVGElement } from '../../utils/safe-types'

7 7

import { BVTooltip } from './helpers/bv-tooltip'

8 8 9 9

const NAME = 'BTooltip'

@@ -24,7 +24,7 @@ export const BTooltip = /*#__PURE__*/ Vue.extend({

24 24

target: {

25 25

// String ID of element, or element/component reference

26 26

// Or function that returns one of the above

27 -

type: [String, HTMLElement, Function, Object],

27 +

type: [String, HTMLElement, SVGElement, Function, Object],

28 28

// default: undefined,

29 29

required: true

30 30

},

Original file line number Diff line number Diff line change

@@ -6,6 +6,10 @@ import { hasWindowSupport } from './env'

6 6 7 7

const w = hasWindowSupport ? window : {}

8 8 9 -

export const HTMLElement = hasWindowSupport ? w.HTMLElement : class HTMLElement extends Object {}

9 +

export const Element = hasWindowSupport ? w.Element : class Element extends Object {}

10 + 11 +

export const HTMLElement = hasWindowSupport ? w.HTMLElement : class HTMLElement extends Element {}

12 + 13 +

export const SVGElement = hasWindowSupport ? w.SVGElement : class SVGElement extends Element {}

10 14 11 15

export const File = hasWindowSupport ? w.File : class File extends Object {}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4