diff --git a/lib/components/form/dropdown.jsx b/lib/components/form/dropdown.jsx index b6e2597..8739005 100644 --- a/lib/components/form/dropdown.jsx +++ b/lib/components/form/dropdown.jsx @@ -1,4 +1,3 @@ -import { useState } from "react"; import gwMerge from "../../gw-merge"; function Dropdown({ @@ -7,15 +6,16 @@ function Dropdown({ labelClassName = "", className = "", onChange, + value, ...props }) { - const [selectedValue, setSelectedValue] = useState(options[0]?.value); if (!options || options.length === 0) { console.error( `Dropdown ${label} must have at least one option with value and text.`, ); return null; } + return ( <>