Taxes are due to the state where the work was performed and/or income earned. Therefore, if you were working in state A when the bonus was earned, then the income should be allocated to state A. See more information below for filing part-year resident returns in TurboTax, plus information on allocating income between states.
https://ttlc.intuit.com/replies/3302008
https://ttlc.intuit.com/replies/4777389