fix(web): fix values persisting across input dialogs opened quickly

This commit is contained in:
Luke
2022-12-16 09:40:28 +01:00
parent 41b0850764
commit abff60d4ed
4 changed files with 4 additions and 5 deletions

View File

@@ -72,10 +72,9 @@ const InputDialog: React.FC = () => {
<ModalHeader textAlign="center">{fields.heading}</ModalHeader>
<ModalBody fontFamily="Poppins" textAlign="left">
{fields.rows.map((row: IInput | ICheckbox | ISelect | INumber | ISlider, index) => (
<React.Fragment key={`row-${index}`}>
<React.Fragment key={`row-${index}-${row.type}-${row.label}`}>
{row.type === 'input' && (
<InputField
key={`input-${index}`}
row={row}
index={index}
handleChange={handleChange}