Use Field onValueChange in the Zendesk dialog
Field exposes onValueChange(value) and wires the input's onChange itself, so the explicit event-typed onChange handler was redundant. Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
@@ -857,8 +857,7 @@ export function AddAccessSourceDialog({
|
||||
label={__("Zendesk subdomain")}
|
||||
placeholder={__("acme")}
|
||||
value={zendeskSubdomain}
|
||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
|
||||
setZendeskSubdomain(e.target.value)}
|
||||
onValueChange={setZendeskSubdomain}
|
||||
help={__("The <subdomain> part of <subdomain>.zendesk.com")}
|
||||
required
|
||||
autoFocus
|
||||
|
||||
Reference in New Issue
Block a user