Skip to content

Conversation

xLansang
Copy link

This PR extends the disabled click action to the "Enter" and "Space" keypress during loading state. This is to address the multiple request issue hoppscotch/hoppscotch#4134 in the hoppscotch repository.

What's Changed

  • Added a key event listener to HoppButtonPrimary.
  • Added a HandleKeypress function that disables the enter and space eventf if the button is loading
  • Added a "Keypress" story so that other developers can test the functionality of the new changes

I confirmed that both keypress actions are disabled during loading state on Histoire using the new story.
Here is a test video:

test_correct.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants