Release 0.10.0
·
56 commits
to main
since this release
Added
-
Accept
emptyPlaceholderproperty onSelectto control the message
displayed when there are no options available. Defaults toNo options.
Thanks to @raskyer for this contribution. -
The
initialValueprop of theSelectcomponent can now be a Signal in order
to support reactively re-setting the initial value of the component. This is
useful for providing 'reset form' functionality for example.const [initialValue, setInitialValue] = createSignal(null, { equals: false }); <Select initialValue={initialValue} options={["apple", "banana", "pear", "pineapple", "kiwi"]} /> <button onClick={() => setInitialValue(null)}>Reset</button>