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")}
|
label={__("Zendesk subdomain")}
|
||||||
placeholder={__("acme")}
|
placeholder={__("acme")}
|
||||||
value={zendeskSubdomain}
|
value={zendeskSubdomain}
|
||||||
onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
|
onValueChange={setZendeskSubdomain}
|
||||||
setZendeskSubdomain(e.target.value)}
|
|
||||||
help={__("The <subdomain> part of <subdomain>.zendesk.com")}
|
help={__("The <subdomain> part of <subdomain>.zendesk.com")}
|
||||||
required
|
required
|
||||||
autoFocus
|
autoFocus
|
||||||
|
|||||||
Reference in New Issue
Block a user