From c743561c25187cd5607de36ebeafbdf267f1faef Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Mon, 14 Aug 2023 10:23:59 -0400 Subject: [PATCH] update docs --- docs/pages/components/select.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/pages/components/select.md b/docs/pages/components/select.md index e830a747..6fd05cbe 100644 --- a/docs/pages/components/select.md +++ b/docs/pages/components/select.md @@ -252,9 +252,7 @@ Note that multi-select options may wrap, causing the control to expand verticall Use the `value` attribute to set the initial selection. -When using `multiple`, the `value` _attribute_ uses space-delimited values to select more than one option. -Note that `sl-option` values cannot contain spaces for this reason. If accessing or setting the `value` _property_ -through Javascript, `value` is an array. +When using `multiple`, the `value` _attribute_ uses space-delimited values to select more than one option. Because of this, `` values cannot contain spaces. If you're accessing the `value` _property_ through Javascript, it will be an array. ```html:preview @@ -265,11 +263,6 @@ through Javascript, `value` is an array. ``` -```js -const select = document.querySelector('sl-select[multiple]'); -select.value = ['option-1', 'option-2'] -``` - ```jsx:react import SlDivider from '@shoelace-style/shoelace/dist/react/divider'; import SlOption from '@shoelace-style/shoelace/dist/react/option';