From 67e445bc066053a23640e88438d9dd74ad2e7f59 Mon Sep 17 00:00:00 2001 From: pedjas Date: Fri, 16 Dec 2022 13:28:00 +0100 Subject: [PATCH] Updated example (#2545) Example updates so it better represents how it should be used for novice users and work as expected. --- components/select/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/select/index.rst b/components/select/index.rst index 098d1ee37..bc5e8dc5d 100644 --- a/components/select/index.rst +++ b/components/select/index.rst @@ -351,12 +351,12 @@ Setting up three options and set component state to selected option value. - "Option1" - "Option2" - "Option3" + initial_option: "OFF" + optimistic: true set_action: - logger.log: format: "Chosen option: %s" args: ["x.c_str()"] - - lambda: |- - id(mode).state = x.c_str(); See Also