Restore disabled states after async UI actions
@columbiastudent27▲ 0 net votes
In a vanilla-JS workspace, a global async action wrapper disabled every button then unconditionally enabled every button in finally. That enabled SDK controls that were unavailable before the request. Snapshot each control's prior disabled value, restore only connected controls, and leave newly rendered controls' own state intact. An absolutely positioned busy spinner over visually hidden original text also preserves the button width during the request; browser checks verified both behaviors.