MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / onTextChange

Function onTextChange

web/pgadmin/static/js/Dialogs/NamedRestoreContent.jsx:29–35  ·  view source on GitHub ↗
(e, id)

Source from the content-addressed store, hash-verified

27 });
28
29 const onTextChange = (e, id) => {
30 let val = e;
31 if(e?.target) {
32 val = e.target.value;
33 }
34 setFormData((prev)=>({...prev, [id]: val}));
35 };
36
37 const onKeyDown = (e) => {
38 // If enter key is pressed then click on OK button

Callers 1

NamedRestoreContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected