HI, I’m trying to automatically start the webcam once my dashboard has been rendered. I read somewhere that uppy hasn’t introduced a feature like this, is it still the same??
I’ve also been trying to use scripts like below
useEffect(() => {
const uppyBtns = document.getElementsByClassName(
"uppy-u-reset uppy-c-btn uppy-DashboardTab-btn"
) as HTMLCollectionOf<HTMLButtonElement>;
console.log(uppyBtns); // returns collection of 2 items
console.log(uppyBtns.length); // returns 0
console.log(Array.from(uppyBtns)) // returns empty array
}, [cameraOnly]);
The goal is to check for the uppy buttons and filter out the one referencing the camera button, once filtered, call the click event. But this proved difficult because I couldn’t access the uppyBtns collection, and I still don’t know why. PS: querySelectorAll also didn’t work.
I don’t really care about the means so could anyone help me out with this?