We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e22202c commit b8df9f7Copy full SHA for b8df9f7
1 file changed
packages/fiori/src/UserMenuItem.ts
@@ -59,6 +59,18 @@ class UserMenuItem extends MenuItem {
59
return this.items.filter(isInstanceOfMenuItem);
60
}
61
62
+ /**
63
+ * Overrides the base MenuItem behavior to prevent unchecking
64
+ * the currently checked item in single-select mode,
65
+ * ensuring there is always a selection.
66
+ */
67
+ _updateCheckedState() {
68
+ if (this._checkMode === MenuItemGroupCheckMode.Single && this.checked) {
69
+ return;
70
+ }
71
+ super._updateCheckedState();
72
73
+
74
/**
75
* Returns the text of the currently checked sub-item.
76
* Only returns text for single-select groups.
0 commit comments