So according to rule we should use bare infinitive after modals and auxiliary verb do, so my question is that, is this sentence grammatically correct
What he did was wrong.
Or it should be
What he did is wrong.
I am confused with this sentence, i mean “was" is not a bare infinitive, is it grammatically correct to use past tense after do, did and does.