fix(champs): save departement info on champ commune
This commit is contained in:
parent
333a4029af
commit
ae09b37e72
6 changed files with 37 additions and 8 deletions
|
@ -51,7 +51,7 @@ function ComboSearch({
|
|||
),
|
||||
[hiddenFieldId]
|
||||
);
|
||||
const initialValue = hiddenValueField && hiddenValueField.value;
|
||||
const initialValue = hiddenValueField ? hiddenValueField.value : props.value;
|
||||
const [searchTerm, setSearchTerm] = useState('');
|
||||
const [debouncedSearchTerm] = useDebounce(searchTerm, 300);
|
||||
const [value, setValue] = useState(initialValue);
|
||||
|
@ -177,6 +177,7 @@ function ComboSearch({
|
|||
}
|
||||
|
||||
ComboSearch.propTypes = {
|
||||
value: PropTypes.string,
|
||||
hiddenFieldId: PropTypes.string,
|
||||
scope: PropTypes.string,
|
||||
minimumInputLength: PropTypes.number,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue