Skip to content

Commit ec0a71c

Browse files
committed
feat: add clearable functionality to webhook input field in UpsertWebhookDialog
- Introduced a clearable prop to the input field, allowing users to easily reset the field value. - Implemented an onClear handler to reset the input when the clear action is triggered. These changes aim to enhance user experience by providing a more intuitive way to manage input values in the webhook dialog.
1 parent 7cc4045 commit ec0a71c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/features/dashboard/settings/webhooks/upsert-webhook-dialog-steps.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,8 @@ export function UpsertWebhookDialogSteps({
367367
disabled={isLoading}
368368
minLength={32}
369369
className="min-w-0"
370+
clearable
371+
onClear={() => field.onChange('')}
370372
{...field}
371373
ref={(el) => {
372374
field.ref(el)

0 commit comments

Comments
 (0)