If the visibility property of the style of an HTML element is set to hidden, is it still clickable?
visibility
hidden
When the display property
display
You can use useRef in react, add ref to your input and use it to call onClick like below
import React, { useRef } from "react"; const input = useRef();
and then call whatever you want like click method
input.current.click();