浏览代码

Fix "Copied" box not showing up when copying any password

Fixes https://github.com/lesspass/lesspass/issues/446
pull/448/head
Guillaume Vincent 5 年前
父节点
当前提交
edbeb64c72
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      packages/lesspass-pure/dist/lesspass.min.js
  2. +2
    -2
      packages/lesspass-pure/src/services/tooltip.js

+ 1
- 1
packages/lesspass-pure/dist/lesspass.min.js
文件差异内容过多而无法显示
查看文件


+ 2
- 2
packages/lesspass-pure/src/services/tooltip.js 查看文件

@@ -1,11 +1,11 @@
export function showTooltip(element, message, position = "right") {
element.setAttribute("data-balloon", message);
element.setAttribute("aria-label", message);
element.setAttribute("data-balloon-visible", "");
element.setAttribute("data-balloon-pos", position);
}

export function hideTooltip(element) {
element.removeAttribute("data-balloon");
element.removeAttribute("aria-label");
element.removeAttribute("data-balloon-visible");
element.removeAttribute("data-balloon-pos");
}

正在加载...
取消
保存