Why chandigarh is the capital of haryana and Punjab?

As before 1966, Haryana and Punjab were 1 state known as Punjab. So after division there was no action was taken .to make separate capital for different states.