@fluid-topics/ft-tooltip 2.1.12 → 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-tooltip.d.ts +1 -0
- package/build/ft-tooltip.js +7 -1
- package/build/ft-tooltip.light.js +16 -16
- package/build/ft-tooltip.min.js +32 -32
- package/package.json +5 -5
package/build/ft-tooltip.d.ts
CHANGED
package/build/ft-tooltip.js
CHANGED
|
@@ -38,6 +38,9 @@ export class FtTooltip extends FtLitElementWithI18n {
|
|
|
38
38
|
if (!this.isIgnored(e)) {
|
|
39
39
|
this.show();
|
|
40
40
|
}
|
|
41
|
+
else if (this.matchesIgnored(e)) {
|
|
42
|
+
this.hide();
|
|
43
|
+
}
|
|
41
44
|
};
|
|
42
45
|
this.onFocusIn = (e) => {
|
|
43
46
|
if (!this.isIgnored(e) && window.FluidTopicsA11yHints.isKeyboardNavigation && window.FluidTopicsA11yHints.lastPressedKey === "Tab") {
|
|
@@ -210,8 +213,11 @@ export class FtTooltip extends FtLitElementWithI18n {
|
|
|
210
213
|
}
|
|
211
214
|
}, this.manual ? 0 : this.delay);
|
|
212
215
|
}
|
|
216
|
+
matchesIgnored(e) {
|
|
217
|
+
return eventPathContainsMatchingElement(e, this.ignoreMatchingElements, this.eventsTarget);
|
|
218
|
+
}
|
|
213
219
|
isIgnored(e) {
|
|
214
|
-
return this.manual ||
|
|
220
|
+
return this.manual || this.matchesIgnored(e);
|
|
215
221
|
}
|
|
216
222
|
}
|
|
217
223
|
FtTooltip.elementDefinitions = {
|