I saw a post yesterday showing that by rule 14 of the convention rules once a candidate suspends their campaign the delegates become unbound.
State rules sometimes conflict with the national convention rules.
Read Alaska rules from the above article.
They were reallocated by party rule. Rubio asked for his delegates returned. They returned the delegates to Rubio.
So Alaska’s rules were meaningless.