mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 16:38:21 +00:00
Fix: Incorrect value exposed for default value in dropdown
This commit is contained in:
parent
de7fd59113
commit
fe7d14ba2c
1 changed files with 5 additions and 0 deletions
|
|
@ -267,6 +267,11 @@ export const DropdownV2 = ({
|
|||
setExposedVariable('isMandatory', isMandatory);
|
||||
}, [isMandatory]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isInitialRender.current) return;
|
||||
setExposedVariable('value', currentValue);
|
||||
}, [currentValue]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isInitialRender.current) return;
|
||||
const validationStatus = validate(currentValue);
|
||||
|
|
|
|||
Loading…
Reference in a new issue