Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Dec 30, 2020
2 parents 12a8dab + 213c5a8 commit 11084f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
12 changes: 6 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@

Install deps:

```
```sh
yarn
```

Run the tests:

```
```sh
yarn run test:unit --watch
```

Build the library in dev mode:

```
```sh
yarn run dev
```

Build the library for production:

```
```sh
yarn run build
```

### Demo

Run the demo:

```
```sh
cd demo-src
yarn
yarn run dev
```

Build the demo:

```
```sh
yarn run build
```
5 changes: 4 additions & 1 deletion src/lib/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ export default class Tooltip {
_setContent (content, options) {
this.asyncContent = false
this._applyContent(content, options).then(() => {
if (!this.popperInstance) return;
this.popperInstance.update()
})
}
Expand Down Expand Up @@ -420,7 +421,9 @@ export default class Tooltip {
this._tooltipNode.style.display = 'none'
this._tooltipNode.setAttribute('aria-hidden', 'true')

this.popperInstance.disableEventListeners()
if (this.popperInstance) {
this.popperInstance.disableEventListeners()
}

clearTimeout(this._disposeTimer)
const disposeTime = directive.options.disposeTimeout
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue, { VueConstructor, DirectiveOptions, PluginFunction } from 'vue';

const vToolTip: PluginFunction<any>;
declare const vToolTip: PluginFunction<any>;
export default vToolTip;

export const VPopover: VueConstructor<Vue>;
Expand Down

0 comments on commit 11084f2

Please sign in to comment.