diff --git a/docs/components/select-rich/use-cases.md b/docs/components/select-rich/use-cases.md
index c8674af5e..6d0ebee56 100644
--- a/docs/components/select-rich/use-cases.md
+++ b/docs/components/select-rich/use-cases.md
@@ -40,7 +40,15 @@ export const optionsWithHTML = () => html`
## Many Options with Scrolling
```js preview-story
-export const manyOptionsWithScrolling = () => html`
+export const manyOptionsWithScrolling = () => {
+ const modelValues = [
+ { value: 'red', checked: false },
+ { value: 'hotpink', checked: true },
+ { value: 'teal', checked: false },
+ { value: 'green', checked: false },
+ { value: 'blue', checked: false },
+ ];
+ return html`
-
+
I am red
-
+
I am hotpink
-
+
I am teal
-
+
I am green
-
+
I am blue
`;
+};
```
## Read only prefilled
@@ -78,9 +87,9 @@ The readonly attribute is delegated to the invoker for disabling opening the ove
```js preview-story
export const readOnlyPrefilled = () => html`
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
`;
```
@@ -94,9 +103,9 @@ If you disable the entire select, the disabled attribute is also delegated to th
```js preview-story
export const disabledSelect = () => html`
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
`;
```
@@ -132,13 +141,10 @@ export const renderOptions = ({ shadowRoot }) => {
2,
);
}
+ const mv = { value: obj, checked: false };
return html`
- ${objs.map(
- obj => html`
- ${obj.label}
- `,
- )}
+ ${objs.map(obj => html` ${obj.label} `)}
Full value:
@@ -156,14 +162,14 @@ This changes the keyboard interaction.
```js preview-story
export const interactionMode = () => html`
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
`;
```
diff --git a/packages/ui/components/overlays/src/OverlayController.js b/packages/ui/components/overlays/src/OverlayController.js
index 4fab05565..c5fb88224 100644
--- a/packages/ui/components/overlays/src/OverlayController.js
+++ b/packages/ui/components/overlays/src/OverlayController.js
@@ -207,7 +207,7 @@ export class OverlayController extends EventTarget {
this.manager.add(this);
/** @protected */
- this._contentId = `overlay-content--${Math.random().toString(36).substr(2, 10)}`;
+ this._contentId = `overlay-content--${Math.random().toString(36).slice(2, 10)}`;
/** @private */
this.__originalAttrs = new Map();
this.updateConfig(config);
diff --git a/packages/ui/components/select-rich/src/LionSelectRich.js b/packages/ui/components/select-rich/src/LionSelectRich.js
index f00a38e7c..9ead08682 100644
--- a/packages/ui/components/select-rich/src/LionSelectRich.js
+++ b/packages/ui/components/select-rich/src/LionSelectRich.js
@@ -67,14 +67,11 @@ export class LionSelectRich extends SlotMixin(ScopedElementsMixin(OverlayMixin(L
`;
}
+ /** @type {SlotsMap} */
get slots() {
return {
...super.slots,
- invoker: () => {
- const invokerEl = this.createScopedElement('lion-select-invoker');
- invokerEl.setAttribute('data-tag-name', 'lion-select-invoker');
- return invokerEl;
- },
+ invoker: () => html``,
};
}