Input type "color" not working in Safari on iPhone

Hello everyone, in my website I need to give users the ability to choose a color via input type=“color”.
I don't understand why it works fine on desktop (even on Safari for Mac) but doesn't open the color picker on iPhone. How can I solve this?

Thank you,
Andrea

There is an issue on IOs, you need to set focus() first, and after call the click, after that, should work