mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-17 04:40:44 +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(() =>
|
||||
|
@ -342,7 +342,7 @@ function FilterCriteriaPaster({table, field, type, onSave}: Props): JSX.Element
|
||||
if (type === "number")
|
||||
{
|
||||
let suffix = invalidCount === 1 ? " value is not a number" : " values are not numbers";
|
||||
setErrorText(invalidCount + suffix + "numbers and will not be added to the filter");
|
||||
setErrorText(invalidCount + suffix + " and will not be added to the filter");
|
||||
}
|
||||
else if (type === "pvs")
|
||||
{
|
||||
|
Reference in New Issue
Block a user