mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-17 09:48:33 +00:00
refactor(web/input): default select to first option
This commit is contained in:
1 parent
a51d3a05e3
commit
c88ed6b299
2 files changed
+1
-2
No files matched your search
@@ -13,7 +13,7 @@ const SelectField: React.FC<Props> = (props) => {
|
||||
const controller = useController({
|
||||
name: `test.${props.index}.value`,
|
||||
control: props.control,
|
||||
defaultValue: props.row.default,
|
||||
defaultValue: props.row.default || props.row.options[0].value,
|
||||
rules: { required: props.row.required },
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user