monobill-mintui 0.6.694 → 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/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._isNestedControl(e) || this._dispatchClickableEvent(e);
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monobill-mintui",
3
- "version": "0.6.694",
3
+ "version": "0.6.696",
4
4
  "description": "Framework-independent HTML custom elements with component-scoped CSS.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",