Part-year capital gains (CA-PA) allocation question

  • I lived in California in 2021 working remotely.
  • Moved to Pennsylvania permanently in August 2021 and continued to work remotely.
  • While living in California, I had capital gains where my last sales happened in July (so before moving to PA)

In TurboTax (online) my Pennsylvania state return is taking those capital gains and adding it to my total income.

 

Is this correct and why is it happening? If this shouldn't be the case then:

     Do I go to the "Schedule of Gains/Losses" section and select each sale as "This sale is not taxable in PA"

or

     should I do this in the "Credit for taxes paid to other states" double taxed income section?

 

I am a little confused how to do this correctly or why Pennsylvania is taking those sales to consideration as my income even though they happened prior to moving. 

 

I would like elaboration on this situation and correct path forward in TurboTax to file correctly.

 

Thank you

- Happy taxpayer