Deductions & credits

I contributed over $300 cash to charity and in turbotax federal, took the deduction when asked.  But in filling the CA turbotax, the program subtracts the $300 and adds that back to income.  My question is whether this is correct?  If it adds that back to income (because CA doesnt allow that), does turbotax increase the charitable contribution amount by the $300 as well so that it is deducted elsewhere?