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/2dd8d5a below:

hide trigger element title attribute during sh… · bootstrap-vue/bootstrap-vue@2dd8d5a · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+19

-12

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+19

-12

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

@@ -413,6 +413,8 @@ export const BVTooltip = /*#__PURE__*/ Vue.extend({

413 413

// Hide the tooltip

414 414

const tip = this.getTemplateElement()

415 415

if (!tip || !this.localShow) {

416 +

/* istanbul ignore next */

417 +

this.restoreTitle()

416 418

/* istanbul ignore next */

417 419

return

418 420

}

@@ -613,7 +615,7 @@ export const BVTooltip = /*#__PURE__*/ Vue.extend({

613 615

const target = this.getTarget()

614 616

if (target && hasAttr(target, 'data-original-title')) {

615 617

setAttr(target, 'title', getAttr(target, 'data-original-title') || '')

616 -

setAttr(target, 'data-original-title', '')

618 +

removeAttr(target, 'data-original-title')

617 619

}

618 620

},

619 621

//

@@ -886,9 +888,14 @@ export const BVTooltip = /*#__PURE__*/ Vue.extend({

886 888

if (!this.computedDelay.show) {

887 889

this.show()

888 890

} else {

891 +

// Hide any title attribute while enter delay is active

892 +

this.fixTitle()

889 893

this.hoverTimeout = setTimeout(() => {

894 +

/* istanbul ignore else */

890 895

if (this.$_hoverState === 'in') {

891 896

this.show()

897 +

} else if (!this.localShow) {

898 +

this.restoreTitle()

892 899

}

893 900

}, this.computedDelay.show)

894 901

}

Original file line number Diff line number Diff line change

@@ -446,11 +446,11 @@ Where `[mod]` can be (all optional):

446 446

- `nofade` to turn off animation.

447 447

- `html` to enable rendering raw HTML. by default HTML is escaped and converted to text.

448 448

- A delay value in the format of `d###` (where `###` is in ms, defaults to `50`), applied to both

449 -

`hide` and `show` (affects `hover` and `focus` only)

449 +

`hide` and `show`.

450 450

- A show delay value in the format of `ds###` (where `###` is in ms, defaults to `50`), applied to

451 -

`show` trigger only (affects `hover` and `focus` only)

451 +

`show` trigger only.

452 452

- A hide delay value in the format of `dh###` (where `###` is in ms, defaults to `50`), applied to

453 -

`hide` trigger only (affects `hover` and `focus` only)

453 +

`hide` trigger only.

454 454

- An offset value in pixels in the format of `o###` (where `###` is the number of pixels, defaults

455 455

to `0`. Negative values are allowed). Note if an offset is supplied, then the alignment positions

456 456

will fallback to one of `top`, `bottom`, `left`, or `right`.

Original file line number Diff line number Diff line change

@@ -309,24 +309,24 @@ Where `[modX]` can be (all optional):

309 309 310 310

- Positioning: `top`, `bottom`, `left`, `right`, `auto`, `topleft`, `topright`, `bottomleft`,

311 311

`bottomright`, `lefttop`, `leftbottom`, `righttop`, or `rightbottom` (last one found wins,

312 -

defaults to `top`)

312 +

defaults to `top`).

313 313

- Event trigger: `click`, `hover`, `focus`, `blur` (if none specified, defaults to `focus` and

314 314

`hover`. `blur` is a close handler only, and if specified by itself, will be converted to

315 315

`focus`). Use `manual` if you only want to control the visibility manually.

316 -

- `nofade` to turn off animation

316 +

- `nofade` to turn off animation.

317 317

- `html` to enable rendering raw HTML. By default HTML is escaped and converted to text

318 318

- A delay value in the format of `d###` (where `###` is in ms, defaults to `50`), applied to both

319 -

`hide` and `show` (affects `hover` and `focus` only)

319 +

`hide` and `show`.

320 320

- A show delay value in the format of `ds###` (where `###` is in ms, defaults to `50`), applied to

321 -

`show` trigger only (affects `hover` and `focus` only)

321 +

`show` trigger only.

322 322

- A hide delay value in the format of `dh###` (where `###` is in ms, defaults to `50`), applied to

323 -

`hide` trigger only (affects `hover` and `focus` only)

323 +

`hide` trigger only.

324 324

- An offset value in pixels in the format of `o###` (where `###` is the number of pixels, defaults

325 -

to `0`. Negative values allowed)

325 +

to `0`. Negative values allowed).

326 326

- A boundary setting of `window` or `viewport`. The element to constrain the visual placement of the

327 327

tooltip. If not specified, the boundary defaults to the trigger element's scroll parent (in most

328 -

cases this will suffice)

329 -

- A contextual variant in the form of `v-XXX` (where `XXX` is the color variant name)

328 +

cases this will suffice).

329 +

- A contextual variant in the form of `v-XXX` (where `XXX` is the color variant name).

330 330 331 331

Where `<value>` can be (optional):

332 332

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