mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-23 11:28:36 +00:00
fix(web): fix values persisting across input dialogs opened quickly
This commit is contained in:
1 parent
41b0850764
commit
abff60d4ed
4 files changed
+4
-5
No files matched your search
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user