From 52933a528bdeabf00dc17506bf1ef031cffd7ca6 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 18 Jan 2022 08:50:14 -0500 Subject: [PATCH] Add note about setting multiselect values --- docs/components/select.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/components/select.md b/docs/components/select.md index 10770da24..df203a4c7 100644 --- a/docs/components/select.md +++ b/docs/components/select.md @@ -158,7 +158,7 @@ const App = () => ( ### Multiple -To allow multiple options to be selected, use the `multiple` attribute. It's a good practice to use `clearable` when this option is enabled. When using this option, `value` will be an array instead of a string. +To allow multiple options to be selected, use the `multiple` attribute. It's a good practice to use `clearable` when this option is enabled. When using this option, the `value` property will be an array of strings instead of a string. ```html preview @@ -188,6 +188,8 @@ const App = () => ( ); ``` +?> When using the `multiple` attribute, the `value` property will be an array instead of a string. To set it in your HTML, obtain a reference to the element and set `value` to an array of strings. + ### Grouping Options Options can be grouped visually using menu labels and dividers.