monobill-mintui 0.6.695 → 0.6.696
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/dist/components/clickable/Clickable.d.ts +0 -1
- package/dist/components/clickable/Clickable.d.ts.map +1 -1
- package/dist/components/clickable/browser.js +2 -6
- package/dist/components/clickable/index.cjs +1 -1
- package/dist/components/clickable/index.js +2 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5716,9 +5716,9 @@ var On = class extends HTMLElement {
|
|
|
5716
5716
|
e.preventDefault(), e.stopPropagation();
|
|
5717
5717
|
return;
|
|
5718
5718
|
}
|
|
5719
|
-
this.
|
|
5719
|
+
this._dispatchClickableEvent(e);
|
|
5720
5720
|
}, this._keydownHandler = (e) => {
|
|
5721
|
-
if (!(e.key !== "Enter" && e.key !== " ")) {
|
|
5721
|
+
if (e.target === this._target && !(e.key !== "Enter" && e.key !== " ")) {
|
|
5722
5722
|
if (this._isDisabled()) {
|
|
5723
5723
|
e.preventDefault(), e.stopPropagation();
|
|
5724
5724
|
return;
|
|
@@ -5733,10 +5733,6 @@ var On = class extends HTMLElement {
|
|
|
5733
5733
|
_isDisabled() {
|
|
5734
5734
|
return this.getAttribute("disabled") === "true" || this.hasAttribute("disabled") && this.getAttribute("disabled") !== "false";
|
|
5735
5735
|
}
|
|
5736
|
-
_isNestedControl(e) {
|
|
5737
|
-
let t = e.target;
|
|
5738
|
-
return !(t instanceof Element) || t === this._target ? !1 : !!t.closest("a, button, input, select, textarea, [contenteditable=\"true\"], [role=\"button\"]");
|
|
5739
|
-
}
|
|
5740
5736
|
_dispatchClickableEvent(e) {
|
|
5741
5737
|
this.dispatchEvent(new CustomEvent("clickable-click", {
|
|
5742
5738
|
bubbles: !0,
|