A firework shot from a crossbow into a block does not explode instantly, it glides along the ground before exploding.
However, it explodes when shot into non-solid blocks like a flower pot, lanterns...
Firework Rockets Fired From Crossbow Slide Across The Ground
fireworks shot from crossbows bounce off blocks
Firework rockets shot from a crossbow slide across the ground again