mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-06 06:35:07 +00:00
fix(web/input): Reset input data state on open
When putting data in the fields, after closing the dialog and opening it again the data wouldn't be visible but if you were to press confirm again then it would send the previous data
This commit is contained in:
1 parent
4464b0ec57
commit
f74a16d2c2
1 file changed
+1
@@ -40,6 +40,7 @@ const InputDialog: React.FC = () => {
|
||||
|
||||
useNuiEvent<Props>("openDialog", (data) => {
|
||||
setInputOptions(data);
|
||||
setInputData([]);
|
||||
setVisible(true);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user