Without knowing the model number of your range I will not be able to provide and specific information, only general.
Generally speaking there is likely a shorted spark switch located on one of the burner valves or the range may have a failed spark module depending on the model.
Normally, each burner valve has a switch that completes a circuit to the spark module when turned to the light position. The switch could have mechanically failed, stuck contact, or if water was spilled or boiled over into one of the burner switches would cause the spark igniters to continue to spark when the knob is off.
If water was spilled it likely will dry up and quit sparking and work normally again. If one of the burner valve switches has failed, it will need to be replaced or all of them may need to be replaced as an assembly. The switch may have just come up and off the burner valve and now turning with the burner stem instead of being fixed to the top of the burner valve.
I added one version of the spark igniter switches (key#3) that come as an assembly in the image below.
Resubmit your question with the model number for model specific troubleshooting and instructions on how to access the spark igniter switches if needed. Each one will need to be checked and tested using an ohm meter for continuity.