openreview / openreview-web

The official web interface for OpenReview.net
https://openreview.net
GNU Affero General Public License v3.0
15 stars 2 forks source link

Change Add button handling to prevent multiple presses. #2079

Closed pmandler-umass closed 2 months ago

pmandler-umass commented 2 months ago

Moved handleAddButtonClick into a useEffect. State var 'isAdding' both stops more key presses and starts the isAdding process. Added a check for adding only active members.

pmandler-umass commented 2 months ago

Much of the code is moved, there aren't that many changes to logic.