There is a way to zoom out a page in React after the page was zoomed-in because an <input>
got focused? Imagine a simple component like the following: I'd like to zoom out on form submit.
const Component = (props) =>{
const handleSubmit = (e) => {
e.preventDefault();
//Zoom out
}
return(
<form onSubmit={handleSubmit}>
<input/>
<button>Sign in</button>
</form>
);
}
Important:
I do NOT want to disable the zoom-in effect. I found that by setting viewport maximum-scale=1
or by setting font-size to 16px I can disable it [Link here], but that's not the behaviour I want for my page.