Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
f5fb681802
|
|||
|
39acbac0f1
|
|||
|
70991f6769
|
940
.yarn/releases/yarn-4.14.1.cjs
vendored
Executable file
940
.yarn/releases/yarn-4.14.1.cjs
vendored
Executable file
File diff suppressed because one or more lines are too long
942
.yarn/releases/yarn-4.9.4.cjs
vendored
942
.yarn/releases/yarn-4.9.4.cjs
vendored
File diff suppressed because one or more lines are too long
@@ -1,5 +1,3 @@
|
|||||||
compressionLevel: mixed
|
|
||||||
|
|
||||||
enableGlobalCache: false
|
enableGlobalCache: false
|
||||||
|
|
||||||
yarnPath: .yarn/releases/yarn-4.9.4.cjs
|
yarnPath: .yarn/releases/yarn-4.14.1.cjs
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## v7.0.1
|
||||||
|
|
||||||
|
- Исправление работы анимации
|
||||||
|
|
||||||
## v7.0.0
|
## v7.0.0
|
||||||
|
|
||||||
- Изменено значение по умолчанию для параметра `trigger`
|
- Изменено значение по умолчанию для параметра `trigger`
|
||||||
|
|||||||
2
index.js
2
index.js
@@ -312,7 +312,6 @@ export const createTooltip = ($el, content, options) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$el._tooltip._currentAnimation?.cancel();
|
|
||||||
const animation = $el._tooltip.$tooltip.querySelector('.tooltip__root').animate(options.animation[0], {
|
const animation = $el._tooltip.$tooltip.querySelector('.tooltip__root').animate(options.animation[0], {
|
||||||
duration: immediately ? 0 : options.duration[0],
|
duration: immediately ? 0 : options.duration[0],
|
||||||
easing: options.easing[0],
|
easing: options.easing[0],
|
||||||
@@ -345,7 +344,6 @@ export const createTooltip = ($el, content, options) => {
|
|||||||
document.body.removeEventListener('click', $el._tooltip.hideOnClickListener);
|
document.body.removeEventListener('click', $el._tooltip.hideOnClickListener);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$el._tooltip._currentAnimation?.cancel();
|
|
||||||
const animation = $el._tooltip.$tooltip.querySelector('.tooltip__root').animate(options.animation[1], {
|
const animation = $el._tooltip.$tooltip.querySelector('.tooltip__root').animate(options.animation[1], {
|
||||||
duration: immediately ? 0 : options.duration[1],
|
duration: immediately ? 0 : options.duration[1],
|
||||||
easing: options.easing[1],
|
easing: options.easing[1],
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"name": "@advdominion/tooltip",
|
"name": "@advdominion/tooltip",
|
||||||
"version": "7.0.0",
|
"version": "7.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "yarn@4.9.4",
|
"packageManager": "yarn@4.14.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user