SkygearIO/skygear-server

[Auth UI] Handle double click of buttons

joyzoursky opened this issue · 1 comments

If user double click on any button (e.g. Next / Disconnect), some events will trigger twice and cause unexpected errors.

  • Skygear Server Date/Version: Not sure
  • Application Platform: Testing on client app

Expected Results

Can disable buttons after click, so user will not click on it for multiple times. Or the server should be able to identify whether it is the same action.

Actual Results

Currently it will show some errors like these if user double clicks:
This identity has been claimed by another user.
identity not found
unexpected error occurred

Steps to reproduce

  1. Click to connect account, e.g. with phone number or email address
  2. Enter email or phone number
  3. Double click on Next button
  4. See unexpected error occurs

Screenshots:

This double click issue has to be solved with JavaScript. If JavaScript is disabled, this issue cannot be fixed.