mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-20 06:10:43 +00:00
hotfix on number chip validity, text fix
This commit is contained in:
@ -123,6 +123,14 @@ function ChipTextField({...props})
|
||||
setChips(chipData);
|
||||
chipsRef.current = chipData;
|
||||
determineChipColors();
|
||||
|
||||
if (chipType !== "pvs")
|
||||
{
|
||||
const currentChipValidity = chips.map((chip, i) =>
|
||||
(chipType !== "number" || !Number.isNaN(Number(chips[i])))
|
||||
);
|
||||
setChipValidity(currentChipValidity);
|
||||
}
|
||||
}, [JSON.stringify(chipData)]);
|
||||
|
||||
useEffect(() =>
|
||||
|
Reference in New Issue
Block a user