My goal is to prevent user input when the variable cssDisableUserInput
is set to true
.
Here's what I have within my main tags:
<div id=userinput disabled={cssDisableUserInput}>
<div id="map">
</div>
Within my CSS, I've added the following styling:
<style>
#map {
width: 1300px;
height: 800px;
}
#userinput{
width: 1300px;
height: 800px;
pointer-events: none;
}
</style>
Despite this setup, user input is still blocked even if cssDisableUserInput
is set to false
. What would be a better approach to achieve this functionality?