Cone attenuation does not work with Custom attenuation curve

Hello!

I noticed that if you use a custom attenuation curve in attenuation settings the cone shape attenuation stops working. It works with the default functions like Linear or Natural but does not with custom curves.

Is there any way to solve it somehow?