unkey icon indicating copy to clipboard operation
unkey copied to clipboard

Form Fields Not Resetting in API Delete Dialog

Open Vardhaman619 opened this issue 1 year ago • 17 comments

Preliminary Checks

  • [X] I have reviewed the documentation: https://unkey.com/docs

  • [X] I have searched for existing issues: https://github.com/unkeyed/unkey/issues

  • [X] This issue is not a question, general help request, or anything other than a bug report directly related to Unkey. Please ask questions in our Discord community: https://unkey.com/discord.

Reproduction / Replay Link (Optional)

No response

Issue Summary

When using the API delete dialog, the form fields are not resetting after reopening the dialog. Their state persists even after closing and reopening the dialog.

Steps to Reproduce

  1. Navigate to Dashbaord -> APIs -> Select anyone API -> API Settings -> Click on Delete API
  2. Open the Delete API dialog.
  3. Enter some data in the input fields.
  4. Close the dialog.
  5. Reopen the dialog.
  6. Check that input fields retain the values entered in the previously.

Expected behavior

Upon reopening the delete dialog, the input fields should be reset to their default state. The previous input values should not persist after the dialog is closed.

Other information

Actual Result:

The input fields retain the values entered in the previously.

Expected Result:

The input fields should be reset to their default (empty) state upon reopening the dialog.

Screenshots

delete-api-input-state-persist-issue.webm

Version info

.

Vardhaman619 avatar Oct 10 '24 10:10 Vardhaman619

/assign

aniketghavte avatar Oct 10 '24 12:10 aniketghavte

i will fix it !! can u assign me this

aniketghavte avatar Oct 10 '24 12:10 aniketghavte

@aniketghavte,I’m already working on this issue. I’m just waiting for the label to be assigned so I can officially start.

Vardhaman619 avatar Oct 10 '24 13:10 Vardhaman619

@Vardhaman619 / @aniketghavte Please don't start work on issues without the Needs Approval label being removed, and the work being assigned to you.

perkinsjr avatar Oct 10 '24 16:10 perkinsjr

/award 150

perkinsjr avatar Oct 10 '24 16:10 perkinsjr

Awarding Vardhaman619: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/Vardhaman619

oss-gg[bot] avatar Oct 10 '24 16:10 oss-gg[bot]

/assign

Vardhaman619 avatar Oct 10 '24 16:10 Vardhaman619

Assigned to @Vardhaman619! Please open a draft PR linking this issue within 48h ⚠️ If we can't detect a PR from you linking this issue in 48h, you'll be unassigned automatically 🕹️ Excited to have you ship this 🚀

oss-gg[bot] avatar Oct 10 '24 16:10 oss-gg[bot]

/assign

mrjayantbokade avatar Oct 11 '24 04:10 mrjayantbokade

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 11 '24 04:10 oss-gg[bot]

/assign

Usmanxs avatar Oct 11 '24 05:10 Usmanxs

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 11 '24 05:10 oss-gg[bot]

/assign

shindebhavika avatar Oct 11 '24 08:10 shindebhavika

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 11 '24 08:10 oss-gg[bot]

/assign

TechWithAkash avatar Oct 12 '24 07:10 TechWithAkash

This issue is already assigned to another person. Please find more issues here.

oss-gg[bot] avatar Oct 12 '24 07:10 oss-gg[bot]