AutarkLabs / open-enterprise

A suite of apps that includes allocation, dot voting, issue curation, and other planning tools so organizations can collectively budget and design custom reward & bounty systems.
GNU General Public License v3.0
92 stars 54 forks source link

fix(dot-voting): smooth transition for side panel #1911

Closed PeterMPhillips closed 4 years ago

PeterMPhillips commented 4 years ago

This fixes the issue where the side panel would just appear instead of doing a smooth transition. Turns out this is caused by the autofocus parameter on the Description field in the NewVote component. Aragon has accounted for this problem though, we just need to get readyToFocus from the useSidePanel() hook and pass it to the autofocus parameter.