Tan Sri Khalid Ibrahim apparently has been sacked from PKR - so he is now party less.
A MB does not have to be a party member but he must be a state assemblyman, which Khalid is. And he must have the majority support of the members of the assembly.
If chooses to remain as MB, what happens now?
He is MB until there is a vote of no confidence in him by the state assembly, whereupon, the Sultan will be asked to appoint a new MB who has the "support and confidence of the Assembly". The Sultan must be so satisfied too.
What if PAS and UMNO supports Khalid while PKR and DAP oppose him - a very dicey situation where it may be difficult to be satisfied either way.
In the interest of certainty and considering the political situation and in the best interest of Selangorians, the Sultan may very well dissolve the Assembly paving the way for fresh elections.
Let's see how this plays out.
Whatever it is, PKR has lost its credibility to govern when it could not even handle a simple leadership issue within its own party.