From 462f15ebb89c22caab5dca5381ab1150ce38d17b Mon Sep 17 00:00:00 2001 From: Rob Dekker Date: Sat, 19 Oct 2024 15:31:46 +0200 Subject: [PATCH] feat: write current value of select to page state --- src/components/selectInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/selectInput.js b/src/components/selectInput.js index ed288dc03..e22534ad0 100644 --- a/src/components/selectInput.js +++ b/src/components/selectInput.js @@ -70,7 +70,7 @@ ? JSON.stringify({ uuid: defaultValueText }) : defaultValueText || placeholderLabelText; - const [currentValue, setCurrentValue] = useState(resolvedCurrentValue); + const [currentValue, setCurrentValue] = usePageState(resolvedCurrentValue); useEffect(() => { setCurrentValue(resolvedCurrentValue);